I'm using Google Chrome for debugging JavaScript. I opened up the JavaScript Console and the "Pause on Exception" feature is enabled. Now whenever I run JavaScript that has an exception in it, it pauses on the line with the exception. However, I can't find where it says what the exception is. I have to press continue script execution for the exception message to be displayed in the JavaScript console.

With every other debugger I have used, whenever the debugger stops on a line, it tells you what was wrong with the line (i.e. the error message is shown). It seems odd that you have to press "run" before you see the error message.

Am I doing anything wrong or is this the only way to see the error messages?

link|improve this question

67% accept rate
1  
Rather oddly, I don't think there is – Haqa Jun 29 '11 at 0:42
feedback

2 Answers

up vote 0 down vote accepted

After consulting many other resources, I've come to the conclusion that there isn't a way to change this behavior.

link|improve this answer
Have you tried viewing the call stack--'raise exception'--on the right-hand side of the script editor? – Wolfpack'08 Jul 19 '11 at 11:26
feedback

On the right side of the editor, under the section labeled "Scope Variables", an item should appear under the Local node named "<exception>", which represents the thrown exception object.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.