And Finally
And Finally

Reputation: 5704

Weird Chrome Developer Tools debugger bug

Every so often when I'm viewing a page in Chrome with Developer Tools open, and that page includes Underscore, Developer Tools will suddenly jump into debugger mode and pause at the same spot, line 1206 of underscore.js, which is the line starting "render" in this section:

try {
  render = new Function(settings.variable || 'obj', '_', source);
} catch (e) {
  e.source = source;
  throw e;
}

I'm not asking the damn thing to debug, and I'm not adding a breakpoint at that spot. I've got this on several otherwise different pages. Has anybody else seen this phenomenon, and is there anything I can do to stop it?

enter image description here

Upvotes: 3

Views: 1827

Answers (1)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324620

Paused on a JavaScript breakpoint

This means that the script found the following statement:

debugger;

In this particular case, it looks like debugger; is somewhere in the string being passed to new Function (you'd need to look at the scope variables and find source's value to check that).

Upvotes: 2

Related Questions