Google Chrome debugger skip breakpoint

本秂侑毒 提交于 2020-01-01 08:43:49

问题


I am currently trying to debug a js script in chrome, I put a breakpoint in the script and it breaks properly when I use only one tab, but on a second tab it doesn't break even though I see the break point in the code.


回答1:


Did you use the pretty print option when viewing the source:

I have noticed that the formatted copy can get out of sync. I remove all of the breakpoints, close both the formatted tab and the original tab (in sources), then open the original, click the pretty print option, and add back my break points.

I haven't looked in depth as to why this is happening, it's just what I've experienced and the work around I found (assuming it's something with the cached version of the formatted source).




回答2:


you have to open a new debugger window for each tab that you want to debug :)



来源:https://stackoverflow.com/questions/17059465/google-chrome-debugger-skip-breakpoint

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