简体   繁体   English

如何使Internet Explorer Javascript调试器也暂停捕获的异常?

[英]How do I make the Internet Explorer Javascript debugger also pause on caught exceptions?

I am trying to debug a "property not found" exception that is only happening in IE. 我正在尝试调试仅在IE中发生的“找不到属性”异常。 The bad part is that this exception is being caught and handled and I could only figure out how to make the IE 9 debugger pause on uncaught exceptions (Ctrl + Shift + E). 糟糕的是,此异常已被捕获和处理,我只能弄清楚如何使IE 9调试器在未捕获的异常(Ctrl + Shift + E)上暂停。

I can't temporarily remove the relevant try-catch clause without messing up my program logic and I'd rather not have to manually operate the debugger step-by-step. 我不能在不弄乱我的程序逻辑的情况下临时删除相关的try-catch子句,而宁愿不必一步一步地手动操作调试器。 How can I easily find what line is generating my exception? 我如何轻松地找到哪一行产生了我的异常?

After a while I conclude that there sadly is no easy way to force IE to halt on caught exceptions. 过了一会儿,我得出结论,可悲的是没有简单的方法来强制IE在捕获的异常上停止。

By the way, I have since solved the problem that triggered this question. 顺便说一句,我此后解决了引发此问题的问题。 I was console.log-ing a XML document and unlike Chrome and FF, IE doesn't handle that well. 我当时正在console.log-ing一个XML文档,与Chrome和FF不同,IE不能很好地处理它。 This is particularly annoying since I was using console.log calls to help debug >_< 因为我使用console.log调用来帮助调试> _ <

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

相关问题 如何使此 JavaScript function 也与 Internet Explorer 兼容 - How to make this JavaScript function also compatible with Internet Explorer 如何在Internet Explorer中暂停JavaScript执行? - How to pause JavaScript execution in Internet Explorer? 我可以在Internet Explorer 11的调试器中修改Javascript代码吗? - Can I modify Javascript code in Internet Explorer 11's debugger? “暂停捕获的异常”过滤器 - “Pause On Caught Exceptions” filter 如何将VS Code Debugger附加到Internet Explorer 11 for JavaScript / HTML - How to attach VS Code Debugger to Internet Explorer 11 for JavaScript/HTML 如何通过 Javascript 检测 Internet Explorer 的临时 Internet 文件位置? - How do I detect the temporary Internet Files location of Internet Explorer through Javascript? 在某些情况下,例如特定于Internet Explorer的CSS或特定于Internet Explorer的JavaScript代码,如何仅将Internet Explorer 10定位? - How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code? 什么会暂停捕获的异常? - What does pause on caught exceptions? 如何使调试器可以访问已评估的javascript代码? - How do I make eval'd javascript code accessible to the debugger? 如何在Internet Explorer 8中获取innerWidth - How Do I Get innerWidth in Internet explorer 8
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM