如何在 Google Chrome 中一步删除所有断点?
How to remove all breakpoints in one step in Google Chrome? Using version 11.
[update]
There is now a feature request for this.
[update]
The feature request is closed (Dec 2011)!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
现在可以在 Chrome 开发者工具的来源选项卡中实现这一点。
请参阅下面的屏幕截图,然后右键单击左侧窗口的“断点”部分。
This is now possible in Sources tab of Chrome Developer Tools.
Please see screen grab below and right click within the "Breakpoints" section of the left window.
从最近(Chrome 18)开始,您可以右键单击“断点”窗格中的任何断点,瞧! “删除所有 JavaScript 断点”弹出菜单项!
Since recently (Chrome 18), you can right-click any breakpoint in the Breakpoints pane and voila! The "Remove All JavaScript Breakpoints" popup menu item!
每次我尝试访问
Sources
面板时,Chrome Devtools 都会崩溃,因为缩小的 Javascript 文件上存在断点。要在不访问界面的情况下删除所有断点,您可以执行以下操作:
在inspector-on-inspector 控制台上,执行以下命令:
关闭检查器并重新加载页面。现在断点消失了。
Chrome Devtools crashed everytime I tried to access the
Sources
panel because of a breakpoint on a minified Javascript file.To remove all breakpoints without access to the interface, you can do the following:
On the inspector-on-inspector console, execute the following:
Close the inspectors and reload the page. Now the breakpoints are gone.
在“源”下,您可以单击下图中标有红色的按钮或使用快捷键 Ctrl + F8,就像显示的工具提示一样(激活/停用断点)。在“断点”下方一点,您将看到所有断点。如果您选择全部禁用,它们将呈灰色显示。
Under Sources, you can click button marked with red on picture below or use shortcut Ctrl + F8 just like tool tip is showing (activate / deactivate breakpoints). A little bit lower under 'Breakpoints' you will see all your breakpoints. If you choose to disable all, they will be grayed out.
此处解决方案。
solution here.
新标签; Ctrl+Shift+J 进入控制台;访问URL
打开 Chrome 任务管理器并结束标签页。
Ctrl+Shift+J 到应用程序 -> Service Workers(离线)->刷新
到源取消断点
成功
new Tabs; Ctrl+Shift+J to Console; Access URL
Open the Chrome task manager and end the tab page.
Ctrl+Shift+J to Application -> Service Workers (Offiline) -> Refresh
to Sources Cancel Breakpoint
Success
另一种选择是使用以下命令停用所有断点:
Ctrl + F8
Another option is to de-activate all break points using:
Ctrl + F8
您还可以清除所有检查器设置并重新加载检查器。它帮助我解决了我无法以任何其他方式删除的 fantom 断点。打开检查器并转到首选项 ->同步->恢复默认值并重新加载(在底部)。
You can also clear all inspector settings and reload the inspector. It helped me with fantom breakpoint I could not remove in any other way. Open inspector and go to Preferences -> Sync -> Restore defaults and reload (at the bottom).
就我而言,卸载并重新安装 Chrome 没有任何成功。
window.localStorage.clear() 也没有帮助。
我的“最后机会解决方案”是删除 Chrome 存储数据的整个目录。
首先关闭 Chrome。
然后查看这个路径“c:\Users\ {your_user} \AppData\Local\Google\Chrome\User Data\Default\Local Storage\”。这里尝试删除该目录下的所有内容。
In my case Uninstall and new installation of Chrome was without any success.
Also window.localStorage.clear() did not help.
My "last chance solution" is to remove entire directory where Chrome is storing its data.
First turn off your Chrome.
Then look at this path "c:\Users\ {your_user} \AppData\Local\Google\Chrome\User Data\Default\Local Storage\". Here try to delete all what is in this directory.