简体   繁体   English

Internet Explorer悬挂问题

[英]Internet explorer hanging issue

I'm currently experiencing an intermediate problem with some inherited client side javascript. 我目前遇到一些继承客户端javascript的中间问题。 Every so often the users' experience a browser hang with the cursor becoming an egg timer and then the browser failing to respond. 用户经常会遇到浏览器,光标变为鸡蛋计时器,然后浏览器无法响应。

I'm having real difficulty in determining where the issue is arising from. 我在确定问题的来源方面遇到了很大困难。 Short of disabling large chunks of javascript at a time is there any way to detect a hang in internet explorer and then examine the stack trace to determine the last few functions called in order to localise the problem? 如果没有一次禁用大块的javascript,有没有办法检测Internet Explorer中的挂起然后检查堆栈跟踪以确定最后几个调用的函数以便本地化问题?

Any help with this would be really appreciated. 任何有关这方面的帮助将非常感激。

Update : You can use Web Development Helper or IE Dev Toolbar to trace your Javascript calls. 更新 :您可以使用Web Development HelperIE Dev Toolbar来跟踪您的Javascript调用。 Fiddler is also a powerful web debugging proxy. Fiddler也是一个功能强大的Web调试代理。

If you want to eliminate the IE part of the problem, disable all unnecessary addons loaded in Internet Explorer first. 如果要消除问题的IE部分,请先禁用Internet Explorer中加载的所有不必要的插件。 I had a big problem with skype addons. 我的skype插件存在很大问题。

If you want to do low level monitoring, you have to use tools like Process Explorer and Process Monitor. 如果要进行低级别监视,则必须使用Process Explorer和Process Monitor等工具。 They have functionalities to show the stack trace, your trace of files and registries being accessed etc from your IE. 它们具有从IE浏览器显示堆栈跟踪,文件跟踪和访问注册表等功能。

For javascript profiling, you can use a tool like firebug . 对于javascript分析,您可以使用像firebug这样的工具。

The application is IE only and not Firefox compatible as the company infrastructure does not support Firefox. 该应用程序仅限IE,而不兼容Firefox,因为公司基础架构不支持Firefox。 Also, this also occurs on a stripped down virtual machine which has no ie addons or toolbars installed. 此外,这也发生在剥离的虚拟机上,没有安装插件或工具栏。

Have you really no idea what so ever about which particular script could be causing the issue? 您是否真的不知道哪个特定脚本可能导致该问题? IE8 beta 2 has some nice debugging / profile features, I would tend to look for the possible resource culprits (eg google maps, ajax calls, dom manipulation table appending etc) and use the debugger to set breakpoints and monitor things this way. IE8 beta 2有一些很好的调试/配置文件功能,我倾向于寻找可能的资源罪魁祸首(例如谷歌地图,ajax调用,dom操作表附加等)并使用调试器设置断点并以这种方式监视事物。 Also I would check using firebug profiler also to see which methods were being called most and taking the most time, you may gain an answer in those results or at least provide you with a starting point 此外,我还会检查使用firebug profiler查看哪些方法被调用最多并花费最多时间,您可以在这些结果中获得答案,或者至少为您提供一个起点

I can repeat the same steps a number of times and have no error but then seemingly randomly I will get a browser hang. 我可以多次重复相同的步骤并且没有错误但是随后看似随机我将获得浏览器挂起。 I guess what I'm asking for is a good strategy for tracking the bug and eliminating it when I cannot easily replicate it. 我想我要求的是一个很好的策略来跟踪错误并在我无法轻易复制时消除它。 I'd hoped there was a way of catching a global ie hang. 我希望有一种方法来捕捉全球即悬挂。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM