admin管理员组

文章数量:1429987

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.

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.

Share Improve this question edited Mar 7, 2018 at 13:33 Natalie asked Mar 6, 2018 at 10:57 NatalieNatalie 3514 silver badges14 bronze badges 4
  • If you don't have devtools opened, breakpoints simply don't exist. Maybe it's not breakpoints that causes hangs of your browser – Andrey Commented Mar 6, 2018 at 11:01
  • @Magnus, you can find the script using full text search (it's inside the lower console docker toolbar, also Ctrl-Shift-F ) if you enable "Search in anonymous and content scripts" in devtools settings. – woxxom Commented Mar 6, 2018 at 11:06
  • @Andrey The problem happens whenever that script is display in the sources panel, only happens when devtools is open during page load. I updated the issue to clarify. – Natalie Commented Mar 7, 2018 at 13:30
  • @wOxxOm Cool, I did not know about this setting :) but alas the search does not include any content from this file. – Natalie Commented Mar 7, 2018 at 13:30
Add a ment  | 

2 Answers 2

Reset to default 4

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.

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

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

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

本文标签: javascriptHow to remove breakpoints causing Chrome to hangStack Overflow