Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Chrome pausing on some line inside jQuery?

Every time I refresh my web app with the Chrome Inspector open it pauses and takes me to the sources tab with a big red arrow icon pointing to some weird line inside jQuery.

I see

Paused in debugger

in the top-middle of the window, and

Paused on exception: DOMException

in the Call Stack on the sources tab.

As far as I'm aware, I haven't set any breakpoints and this code wasn't throwing exceptions before - so what's going on?

like image 222
Andrew Arrow Avatar asked Mar 02 '11 23:03

Andrew Arrow


4 Answers

That little pause icon in the lower left. Should be black in color. Click it to cycle through several breakpoint options.

like image 56
Andrew Arrow Avatar answered Nov 15 '22 22:11

Andrew Arrow


I had been debugging and forgotten to remove a breakpoint.

Event Listener Breakpoints

like image 22
Karson Avatar answered Nov 15 '22 21:11

Karson


Also check that you haven't ticked "Any XHR" under XHR Breakpoints.

like image 6
Jeremy Warne Avatar answered Nov 15 '22 22:11

Jeremy Warne


To disable this on On Windows for Chrome.

In "Script" button circled in red below, cycle to same state ("Don't pause on Exceptions")

enter image description here

like image 1
blue-sky Avatar answered Nov 15 '22 21:11

blue-sky