javascript 从 chrome 中删除所有断点
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18073062/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Remove all breakpoints from chrome
提问by Jim
I had enabled some break points in Chrome's developer tools for Javascript and now I can not delete them.
Any time I switch to the Developer view I always hit a breakpoint which is really annoying.
Strangely enough in some cases I did not put any break point where it stops. It is a different code alltogether.
How can I remove all the breakpoints?
我在 Chrome 的 Javascript 开发人员工具中启用了一些断点,现在我无法删除它们。
每当我切换到开发人员视图时,我总是会遇到一个非常烦人的断点。
奇怪的是,在某些情况下,我没有在它停止的地方放置任何断点。这是一个不同的代码。
如何删除所有断点?
回答by T.J. Crowder
It sounds like you've told Chrome to break on all exceptions. On the sources tab, at the bottom left, there are a series of buttons:
听起来你已经告诉 Chrome 打破所有例外。在源选项卡的左下角,有一系列按钮:
The one I've circled (a filled hexagon with two vertical lines in it) cycles between breaking on all exceptions, on just uncaught exceptions, and not breaking at all. Click it until it's black (not blue or purple).
我圈出的那个(一个填充的六边形,里面有两条垂直线)在打破所有异常、只是未捕获的异常和根本不打破之间循环。单击它直到它变成黑色(不是蓝色或紫色)。
For other breakpoints, they're on the right-hand side under the category "Breakpoints" (you probably knew that :-) ). Right-click and choose "Remove all breakpoints".
对于其他断点,它们位于“断点”类别下的右侧(您可能知道 :-) )。右键单击并选择“删除所有断点”。
回答by oleviolin
You can activate/deactivate breakpoints with ctrl-F8 (Chrome version 49) There is a:
您可以使用 ctrl-F8(Chrome 版本 49)激活/停用断点有一个:
"deactivate / activate"
crossed over black arrow / blue arrow
越过黑色箭头/蓝色箭头
above the watch pane, There is a list of breakpoints below
在监视窗格上方,下面有一个断点列表
Watch, Call stack, Scope where you can activate/deactivate breakpoints individually
观察、调用堆栈、范围,您可以在其中单独激活/停用断点
Right click in this list, and you can remove all breakpoints.
在此列表中右键单击,您可以删除所有断点。
回答by Mohammad Bayat
You can right-clickon any breakpoints in the Sourcetab and click on Remove breakpointor right-clickon the right side on Breakpoints sectionand Remove all breakpoints!
您可以右键单击“源”选项卡中的任何断点,然后单击“删除断点”或右键单击“断点”部分的右侧并删除所有断点!