萤火虫开启后,断点反复触发 [英] breakpoint triggers repeatedly after firebug opening

查看:76
本文介绍了萤火虫开启后,断点反复触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在一个站点上打开Firebug时,我无法进行任何分析,因为每隔几秒钟就会在该行触发一个断点:

When I open firebug on one site, I can not analyse anything because every a few seconds a break-point triggers on that line:

(function() {
  (function a() {
    try {
      (function b(i) {
        if (('' + (i / i)).length !== 1 || i % 20 === 0) {
          (function() {}).constructor('debugger')();
        } else {
          debugger;
        }
        b(++i);
      }(0))
    } catch (e) {
      setTimeout(a, 5000)
    }
  })()
})();

按钮enable/disable breakpoints不起作用.

我无法将其关闭.如何禁用它?

I can not turn it off. How to disable it?

推荐答案

Firebug 确实通过在该行上创建一个禁用的断点来打破这种恶性循环:

Firebug does allow to break this vicious circle by creating a disabled breakpoint on that line:

但是 Firebug即将消失.因此,您实际上看到的可能是Firefox DevTools(使用Firebug主题),而这些工具尚不提供此功能.因此我在一段时间前已要求,并且还有<一个href ="https://bugzilla.mozilla.org/show_bug.cgi?id=925269" rel ="nofollow noreferrer">另一个相关的错误报告.

But Firebug is going away. So what you are actually seeing are probably the Firefox DevTools (using the Firebug theme) and those tools don't provide this feature yet. Therefore I've asked for it some time ago and there's also another related bug report.

另请参见我对一个非常相似的问题的回答.

这篇关于萤火虫开启后,断点反复触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆