Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 488
And Finally Avatar asked Aug 20 '26 15:08

And Finally


1 Answers

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).

like image 111
Niet the Dark Absol Avatar answered Aug 23 '26 07:08

Niet the Dark Absol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!