Rainmaker
Rainmaker

Reputation: 11090

breakpoint triggers repeatedly after firebug opening

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?

Upvotes: 2

Views: 279

Answers (1)

Sebastian Zartner
Sebastian Zartner

Reputation: 20105

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

Disable <code>debugger</code> keyword in Firebug by placing a disabled breakpoint

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.

Upvotes: 2

Related Questions