How to remove all breakpoints in one step in Google Chrome?

醉酒当歌 提交于 2019-12-18 09:59:39

问题


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)!


回答1:


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.




回答2:


Since recently (Chrome 18), you can right-click any breakpoint in the Breakpoints pane and voila! The "Remove All JavaScript Breakpoints" popup menu item!




回答3:


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:

  1. Open inspector-on-inspector : undock first inspector and hit ctrl+shift+I to open the second
  2. On the inspector-on-inspector console, execute the following:

    window.localStorage.breakpoints = [];
    
  3. Close the inspectors and reload the page. Now the breakpoints are gone.




回答4:


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.




回答5:


solution here.

To purge all breakpoints open inspector on inspector (undock first inspector and hit ctrl-shift-I to open the second) and run "WebInspector.settings.domBreakpoints.set([])" in second inspector's console.




回答6:


Another option is to de-activate all break points using:

Ctrl + F8



来源:https://stackoverflow.com/questions/4903302/how-to-remove-all-breakpoints-in-one-step-in-google-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!