[英]Chrome Browser Developer Tools: Scripts Show Up Multiple Times
When using Chrome's Developer Tools to debug Javascript, the list of 'Scripts' tends to add multiple occurrences of each script as I'm changing/reload/testing the code. 当使用Chrome的开发人员工具来调试Javascript时,“脚本”列表往往会在我更改/重新加载/测试代码时添加每个脚本的多次出现。 Safari uses the same essential tool set and does not do this. Safari使用相同的基本工具集,但不执行此操作。 It's not unknown for a script to show up in this list 10 times. 脚本在此列表中出现10次并不是未知数。 When this happens, the only thing I can think to do is to kill the tab and reload it. 当发生这种情况时,我唯一能想到的就是杀死标签并重新加载。 Is this a known bug? 这是一个已知的错误?
Chrome version 18.0.1025.168 (up to date as of this writing) Chrome版本18.0.1025.168(截至本文撰写时为最新版本)
Mac OSX version 10.7.3 (Lion) Mac OSX版本10.7.3(Lion)
Cheers! 干杯!
Mark 标记
I think you are using Chrome extensions. 我认为您使用的是Chrome扩展程序。 Some extensions will cause this issue, check by disable some of them. 某些扩展会导致此问题,请通过禁用其中一些来检查。
Yes, this could be a bug. 是的,这可能是一个错误。 See: 看到:
https://code.google.com/p/chromium/issues/detail?id=113490 https://code.google.com/p/chromium/issues/detail?id=113490
You could try seeing if there are several frames that are using the same script and test the frames one at a time... 您可以尝试查看是否有多个帧使用相同的脚本并一次测试一个帧...
Double-check that the scripts are not being called in your source multiple times. 仔细检查您的源中未多次调用脚本。 It's been my experience that I include js files multiple times on accident and didn't realize it until inspecting the final source HTML in Chrome's Developer Tools. 根据我的经验,我在事故中多次包含js文件,直到在Chrome的开发者工具中检查最终源HTML时才意识到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.