如何清除所有 Firebug JS 断点?
我似乎有一个奇怪的 Firefox/Firebug 问题,Firebug 由于不可见/损坏的断点而暂停 JS。 (Firefox 3.6.17、Firebug 1.7.2)这可能与 jQuery 有关,也可能无关(版本未知)。
由于 Firebug 保留了一个设置断点的持久列表,有没有办法清除 Firebug 可能记住的所有内容?我尝试重新安装 Firebug,但这似乎没有帮助。
我尝试过搜索该问题,但搜索“firebug 断点”当然会返回数千个有关如何使用 firebug 断点的教程。
I seem to have a strange Firefox/Firebug issue where Firebug is suspending JS due to invisible/corrupt breakpoints. (Firefox 3.6.17, Firebug 1.7.2) This may or may not be related to jQuery (version unknown).
Since Firebug keeps a persistent list of set breakpoints, is there a way to clear out everything firebug might be remembering? I tried to reinstall Firebug, but that did not seem to help.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
打开要清除断点的网站,打开 Firebug 或按 F12。
从右侧面板中,您应该看到 Watch、Stack 和 Breakpoints,
单击“断点”下拉列表,然后单击
Open the web site where you want to clear the breakpoints, Open Firebug or press F12.
from the right panel, you should see Watch, Stack and Breakpoints,
Click on breakpoints dropdown and click on
在 Firefox 配置文件文件夹下,找到
firebug
文件夹。确保 Firefox 已关闭。
根据需要编辑或删除
breakpoints.json
。Under the Firefox profile folder, find the
firebug
folder.Make sure that Firefox is closed.
Edit or delete
breakpoints.json
as desired.如果您在 Mac 上找不到 Library/Mozilla 文件夹。因为它是隐藏的。取消隐藏 打开终端并运行它
您现在应该能够找到它的文件夹
要取消隐藏运行此
我想到了一个简单的方法:在 firebug 工具栏中单击 bug 图标并按照重置所有firebug 选项:
If you can't find the Library/Mozilla folder on Mac. Its because its hidden. To unhide Open terminal and run this
You should be able to find it folder now
To unhide run this
I recon an easy way: In firebug toolbar click the bug icon and follow reset all firebug options:
使用右侧选项卡
Using Right side tab
如果仍然失败,请尝试此操作
*重新启动您正在使用的任何编辑器,例如 Visual Studio
try this if it still breaks
*restart what ever editor you are using in conjunction e.g Visual Studio
我在较新的调试器工具版本上遇到了类似的情况。
就我而言,文件保持打开状态,没有任何断点。如果我关闭这些文件的选项卡,它们会在重新加载页面时自动重新打开。
重新加载后,调试器仍然不会在这些文件上显示断点,甚至不会显示删除/禁用断点的选项,如 @AjayR 的答案中所述。
解决方案:
我找到的解决方案是手动转到每个打开的文件选项卡并在任意行上放置一个断点。之后,转到调试器的“断点”部分,然后单击“删除所有断点”。
我离开这个解决方案,因为我已经搜索了很多,但网络上没有其他来源提供这个解决方案。
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.
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.