Disable abusive debugger statements that prevent inspecting websites

Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.

Categories: Supported by:

Disable abusive debugger statements that prevent inspecting websites

Some websites make it impossible to use DevTools by adding debugger statements in their code.

The statements don't do anything for normal users, but as soon as DevTools is opened, the JavaScript execution pauses, and this makes it impossible to debug or inspect the site as normal.

To disable the abusive debugger statement:

Now, everytime this line of code is executed, the nasty debugger statement will be ignored and the page will run normally!

The Sources tool in Firefox, showing how to add a conditional breakpoint.

Thank you François for the tweet and Pankaj Parashar for the tip about using the Never pause here option.

See also