Google Dev Tools is stopping execution when/where no breakpoints are set

别等时光非礼了梦想. 提交于 2019-12-11 10:34:10

问题


My Google Dev Tools has recently (after an apparent upgrade to v.32.0.1700.76) started [annoyingly] stopping script execution as if a breakpoint is set (see screenshot below). Furthermore it is ignoring the “Deactivate Breakpoints” since with this option enabled script execution still stops at these phantom breakpoints. I have no breakpoints set in any of the Dev Tools options – i.e., DOM breakpoints, XHR breakpoings, Event Listener breakpoints. If I close the Dev Tools everything functions as normal. Is anyone else experiencing this behaviour, and more importantly, know how to resolve it?


回答1:


The Chrome Dev Tools have not only the possibility to set break points in the code, or by certain events, but also for exception.

The pause symbol indicates if the dev tools breaks on all exceptions, only on uncaught or does not break at exceptions. jQuery normally catches most of the exceptions, either to do feature detects, or just to detect another failure. So if the pause symbol is activated then the dev tool will stop there.

For development I would recommend to either place the source-map file and original source with the minified version or to use the not minified version, so that you will see where exactly the dev tool stop. Most of the time this will make it way easier to detect the problem yourself, and saves you time.



来源:https://stackoverflow.com/questions/21313050/google-dev-tools-is-stopping-execution-when-where-no-breakpoints-are-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!