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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 10:39:15  来源:igfitidea点击:

Remove all breakpoints from chrome

javascriptdebugginggoogle-chromebreakpointsgoogle-chrome-devtools

提问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 打破所有例外。在源选项卡的左下角,有一系列按钮:

Screenshot of Chrome's bottom-left tools with break-on-exceptions button circled

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

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

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

观察、调用堆栈、范围,您可以在其中单独激活/停用断点

enter image description here

在此处输入图片说明

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!

您可以右键单击源”选项卡中的任何断点,然后单击“删除断点”右键单击断点”部分的右侧并删除所有断点

You can see the picture here

你可以在这里看到图片

回答by Ali Adravi

On Google Chrome 78.0.3904.87 (Official Build) (64-bit)

在 Google Chrome 78.0.3904.87(官方版本)(64 位)上

  1. Either right click on Any XHR or fetch of
  2. Or un-check the checkbox
  3. It will also show the list of break points you put
  1. 右键单击 Any XHR 或获取
  2. 或取消选中复选框
  3. 它还将显示您放置的断点列表

enter image description here

在此处输入图片说明