breakpoint triggers repeatedly after firebug opening

為{幸葍}努か 提交于 2019-12-08 07:11:03

问题


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)
    }
  })()
})();

The button enable/disable breakpoints doesn't work.

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


回答1:


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

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.

See also my answer to a very similar question.



来源:https://stackoverflow.com/questions/41801175/breakpoint-triggers-repeatedly-after-firebug-opening

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!