Natalie
Natalie

Reputation: 351

How to remove breakpoints causing Chrome to hang

Is it possible to delete all breakpoints without opening Chrome devtools?

I have a breakpoint set in a large obfuscated javascript file that cause the current tab to hang if I have devtools open while the page loads. I have no problems if i let the page load, and then open the devtools, but then the script is not visible in the sources and network panels.

I have attempted to disable breakpoints by immediately activating the "Deactivate all breakpoints" button when the page loads, but the breakpoint still triggers causing the tab to hang.

Update: This problem only happens when the sources panel in the devtools is open during page load.

Upvotes: 3

Views: 3837

Answers (2)

Anth12
Anth12

Reputation: 1897

As @Andrey points out, when the dev tools are closed Chrome will never break on a breakpoint.

You can disable breakpoints using Ctrl + F8, hitting F8 afterwards will continue from the current breakpoint.

Disable breakpoints- Chrome

You can also view a summary of all active BP's in the right of dev tools.

Breakpoints summary - Chrome

Update: A last resort option is to clear the dev tools settings as follows. Note this will clear reset any customized settings you have...

Settings > Restore defaults and reload

Dev Tools reset - Chrome

Upvotes: 4

Natalie
Natalie

Reputation: 351

I finally managed to reset the devtools, including all breakpoints, by simply logging out of chrome and back in again.

Upvotes: 1

Related Questions