简体   繁体   English

从 chrome 中删除所有断点

[英]Remove all breakpoints from chrome

I had enabled some break points in Chrome's developer tools for Javascript and now I can not delete them.我在 Chrome 的 Javascript 开发人员工具中启用了一些断点,现在我无法删除它们。
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?如何删除所有断点?

It sounds like you've told Chrome to break on all exceptions.听起来你已经告诉 Chrome 打破所有例外。 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".右键单击并选择“删除所有断点”。

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

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.在此列表中右键单击,您可以删除所有断点。

You can right-click on any breakpoints in the Source tab and click on Remove breakpoint or right-click on the right side on Breakpoints section and Remove all breakpoints !您可以右键单击源”选项卡中的任何断点,然后单击“删除断点”右键单击断点”部分的右侧并删除所有断点

你可以在这里看到图片

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右键单击 Any XHR 或获取
  2. Or un-check the checkbox或取消选中复选框
  3. It will also show the list of break points you put它还将显示您放置的断点列表

在此处输入图片说明

如果您没有任何断点,但它仍然在随机位置中断,只需在任何地方创建一个新的随机断点,然后您就可以删除所有断点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM