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
2 Answers
Reset to default 4As @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
版权声明:本文标题:javascript - How to remove breakpoints causing Chrome to hang - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745542663a2662565.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论