Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view the current exception when breaking on exceptions in Chrome?

When debugging with Chrome's developer tools one can enable breakpoints for all exceptions (or only uncaught ones). How does one view the current exception details when an exception is thrown?

like image 309
Vincent Scheib Avatar asked Oct 21 '25 04:10

Vincent Scheib


1 Answers

In the devtools Scope Variables panel you can find <exception>, which will contain the exception details. The callstack for the exception is visible in the Call Stack panel. Screenshot of devtools with Scope Variables displaying <exception>

like image 148
Vincent Scheib Avatar answered Oct 23 '25 00:10

Vincent Scheib