/dev tips

(31) Get and debug event listeners Expand shorthand properties (33)

Chrome DevTools: Automatically pause on any exception

7 May 2015
Automatically pause on any exception

In DevTools, you can automatically pause on any exception (especially useful for uncaught exceptions). Just enable 'Pause on exceptions' within the Sources Panel. Optionally, you can also pause on caught exceptions.

This means the debugger will pause before that red message appears in the Console and you get a chance to inspect what may have gone wrong.

Sign up to receive a developer tip, in the form of a gif, in your inbox each week.