简体   繁体   English

如何清除所有 Firebug JS 断点?

[英]How do I clear all Firebug JS breakpoints?

I seem to have a strange Firefox/Firebug issue where Firebug is suspending JS due to invisible/corrupt breakpoints.我似乎有一个奇怪的 Firefox/Firebug 问题,Firebug 由于不可见/损坏的断点而暂停 JS。 (Firefox 3.6.17, Firebug 1.7.2) This may or may not be related to jQuery (version unknown). (Firefox 3.6.17、Firebug 1.7.2)这可能与 jQuery(版本未知)有关,也可能无关。

Since Firebug keeps a persistent list of set breakpoints, is there a way to clear out everything firebug might be remembering?由于 Firebug 保留了设置断点的持久列表,有没有办法清除 firebug 可能记住的所有内容? I tried to reinstall Firebug, but that did not seem to help.我试图重新安装 Firebug,但这似乎没有帮助。

I have tried searching for the issue but of course a search for "firebug breakpoints" returns thousands of tutorials on how to use firebug breakpoints.我已经尝试搜索这个问题,但当然搜索“firebug 断点”会返回数千个关于如何使用 firebug 断点的教程。

Open the web site where you want to clear the breakpoints, Open Firebug or press F12.打开要清除断点的 web 站点,打开 Firebug 或按 F12。 from the right panel, you should see Watch, Stack and Breakpoints, Click on breakpoints dropdown and click on在右侧面板中,您应该看到 Watch、Stack 和 Breakpoints,单击 breakpoints 下拉菜单并单击在此处输入图像描述

  1. Under the Firefox profile folder , find the firebug folder.Firefox 配置文件文件夹下,找到firebug文件夹。

  2. Make sure that Firefox is closed.确保 Firefox 已关闭。

  3. Edit or delete breakpoints.json as desired.根据需要编辑或删除breakpoints.json 。json。

If you can't find the Library/Mozilla folder on Mac.如果在 Mac 上找不到 Library/Mozilla 文件夹。 Its because its hidden.因为它隐藏。 To unhide Open terminal and run this取消隐藏打开终端并运行它

defaults write com.apple.Finder AppleShowAllFiles YES

You should be able to find it folder now您现在应该可以找到它的文件夹

To unhide run this要取消隐藏运行此

defaults write com.apple.finder AppleShowAllFiles FALSE

I recon an easy way: In firebug toolbar click the bug icon and follow reset all firebug options :我侦察一个简单的方法:在萤火虫工具栏中单击错误图标并按照重置所有萤火虫选项

在此处输入图像描述

try this if it still breaks如果它仍然坏,试试这个

  • Insert about:support in Firefox url bar插入方式:支持 Firefox url 条
  • find folder 'firebug'找到文件夹“萤火虫”
  • delete file breakpoints.json删除文件断点。json
  • restart Firefox重启 Firefox

*restart what ever editor you are using in conjunction eg Visual Studio *重新启动您正在使用的任何编辑器,例如 Visual Studio

Using Right side tab使用右侧选项卡

I was experiencing a similar situation on newer Debugger Tools versions.我在较新的调试器工具版本上遇到了类似的情况。

In my case, the files remained opened without any breakpoints on them.就我而言,文件保持打开状态,没有任何断点。 If I closed the tabs of these files, they would reopen automatically upon reloading the page.如果我关闭这些文件的选项卡,它们会在重新加载页面时自动重新打开。

After reloading, the debugger would still show no breakpoints on these files, or even the option to remove/disable breakpoints, as mentioned in @AjayR 's answer.重新加载后,调试器仍然不会在这些文件上显示断点,甚至不会显示删除/禁用断点的选项,如@AjayR的回答中所述。


SOLUTION :解决方案

The solution I found was manually going to each opened file tab and placing a breakpoint on any line.我找到的解决方案是手动转到每个打开的文件选项卡并在任何行上放置一个断点。 After that, going to the " Breakpoints " section of the debugger and clicking the " Remove all breakpoints ".之后,转到调试器的“断点”部分并单击“删除所有断点”。

I am leaving this solution as I have searched a bunch but no other source on the web provides this solution.我将离开这个解决方案,因为我搜索了一堆,但 web 上没有其他来源提供此解决方案。

删除断点操作

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

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