简体   繁体   English

为什么Firebug会遇到不存在的断点?

[英]Why is Firebug hitting non-existent break points?

I've been using Firebug to debug some javascript I have on one of my pages. 我一直在使用Firebug调试我的一个页面上的一些javascript。 Recently it has started hitting non-existent "break points" at seemingly random spots in my javascript. 最近它已经开始在我的javascript中看似随机点的不存在的“断点”。 It seems like most of these points are in third party libraries like jQuery, but it also stops on custom javascript. 似乎大多数这些点都在第三方库中,如jQuery,但它也停止在自定义javascript上。

I'm not seeing any errors at these lines and I definitely don't have break points there. 我没有看到这些线路上的任何错误,我肯定没有断点。 Can anyone think of why Firebug would be stopping here? 谁能想到为什么Firebug会在这里停下来? It's getting to the point where I have to hit the "Continue" button about 20 times to get the page to finish Javascript execution... 它已经到了我必须点击“继续”按钮大约20次才能让页面完成Javascript执行...

I had this problem and fixed it like so: 我有这个问题,并修复如下:

  1. Uninstall firebug in the firefox add-ons manager 在firefox附加组件管理器中卸载firebug
  2. Close firefox 关闭firefox
  3. rm -rf profile_folder /firebug rm -rf profile_folder / firebug
  4. Delete all firebug-related lines from profile_folder/prefs.js 从profile_folder / prefs.js中删除所有与firebug相关的行
  5. Reinstall firebug 重新安装firebug

Hope this helps! 希望这可以帮助!


There is nothing wrong with firefox, this is happening because you might have enabled auto breakpoints. firefox没有任何问题,因为你可能已经启用了自动断点。 Check here http://getfirebug.com/wiki/index.php/Script_Panel for more details about what i am talking about. 请查看http://getfirebug.com/wiki/index.php/Scr​​ipt_Panel ,了解我所谈论的更多详情。 Disable them on console and script panel and everything will be solved. 在控制台和脚本面板上禁用它们,一切都将得到解决。

This question is old, but it is also the top result for searches: like firebug random breakpoints. 这个问题很老,但它也是搜索的最佳结果:比如firebug随机断点。

In my experience, assuming this is not due to break on exception or other settings, every time this happens to me there is some collision with jQuery, or another library. 根据我的经验,假设这不是因为异常或其他设置中断,每次发生这种情况时,都会发生与jQuery或其他库的冲突。 Sometimes even name spacing does not keep you safe, and this is very hard to debug. 有时甚至名称间距也不能保证您的安全,这很难调试。

Most recently I had a function named: name_space1.nestedns.focusCursor(). 最近我有一个名为:name_space1.nestedns.focusCursor()的函数。 Something was messing with my focusCursor function.. didn't figure out what, just changed the name. 有些东西搞砸了我的focusCursor功能..没弄清楚是什么,只是改了名字。

Farther in the past I had a function or var named ns.companyabreviationToolTip... and there was collision and breaking on this as well. 在过去,我有一个名为ns.companyabreviationToolTip的函数或var ...并且还存在碰撞和破坏。 Changed ToolTip to something obscure, and everything was happy. 将ToolTip更改为隐藏的内容,一切都很愉快。 Maybe firebug has a secret break on collision setting. 也许firebug在碰撞设置上有一个秘密的突破。 If this is a bug, I hope it does not get fixed… it seems useful. 如果这是一个错误,我希望它不会得到修复...它似乎很有用。

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

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