Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Debugging Exception Errors

Christine Treacy
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Christine Treacy
Full Stack JavaScript Techdegree Graduate 18,412 Points

Pause on exceptions button gone?

It looks as though the 'pause on exceptions' button no longer exists in dev tools, or maybe it is located elsewhere now? I tried googling it but I'm only getting old results. Any help would be appreciated; it seems like a nice tool to have!

1 Answer

Tashan Duncan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tashan Duncan
Front End Web Development Techdegree Graduate 17,799 Points

Hi there,

I assume you may be using firefox. As this button does not exist on the firefox debugger.

To instruct the debugger to pause on an exception, tick these checkboxes in the Breakpoints list: Pause on exceptions Pause on caught exceptions

See the solution (with images) here: https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Breaking_on_exceptions

Happy Coding!