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

firebug, google-chrome, google-chrome-devtools, javascript

Solution

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`

Problem

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.

Original source