Google Chrome调试器跳过断点 [英] Google Chrome debugger skip breakpoint

查看:1203
本文介绍了Google Chrome调试器跳过断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图在chrome中调试一个js脚本,我在脚本中放置了一个断点,当我仅使用一个选项卡时,它会正常打断,但在第二个选项卡上,即使看到断点在代码中。

解决方案

您在查看源代码时是否使用了漂亮的打印选项:



我注意到格式化的副本可能会不同步。我删除了所有断点,关闭了格式化选项卡和原始选项卡(在源文件中),然后打开原始文件,单击漂亮的打印选项,并添加我的断点。



我没有深入了解为什么发生这种情况,这正是我所经历的以及我发现的工作(假设它是格式化源的缓存版本)。


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.

解决方案

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

这篇关于Google Chrome调试器跳过断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆