Chrome浏览器开发者工具:脚本多次显示 [英] Chrome Browser Developer Tools: Scripts Show Up Multiple Times

查看:142
本文介绍了Chrome浏览器开发者工具:脚本多次显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用Chrome的开发工具调试Javascript时,脚本列表往往会在每次更改/重新加载/测试代码时添加多个脚本。 Safari使用相同的基本工具集并且不这样做。脚本在此列表中出现10次并不是个未知数。发生这种情况时,我唯一能做的就是杀死标签并重新加载。这是一个已知的错误?



Chrome版本18.0.1025.168(截至撰写本文为止)



Mac OSX版本10.7.3(Lion)



干杯!



马克

解决方案

是的,这可能是一个错误。请参阅:

https://code.google.com/p/chromium/issues/detail?id=113490



您可以尝试查看是否有多个框架正在使用相同的脚本并一次一个地测试框架......


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. Safari uses the same essential tool set and does not do this. It's not unknown for a script to show up in this list 10 times. 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)

Mac OSX version 10.7.3 (Lion)

Cheers!

Mark

解决方案

Yes, this could be a bug. See:

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

这篇关于Chrome浏览器开发者工具:脚本多次显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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