Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force Google Chrome to show backtrace on exception?

Is it possible (using plugin or maybe some config option) to make javascript error console to show error backtrace?

like image 571
tig Avatar asked May 21 '10 15:05

tig


People also ask

How to see JavaScript code in Chrome?

Open Chrome and navigate to the web page containing the JavaScript you want to view. Right-click an empty area on the web page and select Inspect in the pop-up menu to open the Chrome developer tools.

What is pause on exception?

Pausing on exceptions pauses the code whenever an exception is thrown. This can help us find errors in our code. A stack trace traces where an error comes from. We can see the stack trace of an exception below the "Pause on caught exceptions" option.


1 Answers

There's actually a button on Chrome's js console (looks like a pause button) that will give you this option. It can be toggled to not pause on exceptions, pause only on unhandled exceptions, or pause on any exception.

like image 144
yarmiganosca Avatar answered Sep 20 '22 01:09

yarmiganosca