Why is Chrome pausing on some line inside jQuery?

2020-02-08 04:56发布

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?

8条回答
ゆ 、 Hurt°
2楼-- · 2020-02-08 05:34

I had been debugging and forgotten to remove a breakpoint.

Event Listener Breakpoints

查看更多
迷人小祖宗
3楼-- · 2020-02-08 05:40

This can also cause the issue

Break Point icon at top left should be blue like this(For Deactivate BreakPoints)

enter image description here

Should not grey like this

enter image description here

查看更多
登录 后发表回答