Reputation: 5704
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?
Upvotes: 3
Views: 1827
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