How to increase number of Call Stack entries in Google Chrome Developer Tools (or Firefox)?

Tony_Henrich picture Tony_Henrich · Mar 29, 2012 · Viewed 17.8k times · Source

How to increase number of Call Stack entries in Google Chrome Developer Tools (or Firefox Firebug)? I am getting a Javascript error in a third party control's Javascript. All the calls in the Call Stack window do not belong to my own code. I want to know which line in my code triggered the sequence of events. The Call Stack is not large enough to display something from my own code.

Answer

JasonS picture JasonS · Aug 14, 2013

Chrome solution

https://v8.dev/docs/stack-trace-api

can set via commandline on startup --js-flags="--stack-trace-limit <value>"

or at runtime at loading a page: Error.stackTraceLimit=undefined //unlimited stack trace