Vincent Scheib
Vincent Scheib

Reputation: 18650

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?

Upvotes: 4

Views: 561

Answers (1)

Vincent Scheib
Vincent Scheib

Reputation: 18650

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>

Upvotes: 3

Related Questions