I call the function from the console, but when it throws an exception, I do not get the stack trace, as if the code was executing normally.
Is there a way to modify my command (possibly with try / catch) so that it provides me with this information?
, to clarify:
page.js:
function otherStuff() { return ['a','b',undefined,'c']; function doStuff() { var x = otherStuff(); var z = parseInt(x[2]);
after loading the html page that links page.js
> otherStuff();
I do not get the line number from Error, which is returned to me. When you start it from the page (instead of the console), I get the line number and the stack trace.
source share