admin管理员组文章数量:1022679
I am trying to debug a "property not found" exception that is only happening in 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).
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. How can I easily find what line is generating my exception?
I am trying to debug a "property not found" exception that is only happening in 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).
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. How can I easily find what line is generating my exception?
Share Improve this question asked Oct 17, 2011 at 17:48 hugomghugomg 70.1k29 gold badges166 silver badges255 bronze badges 6- might be better off debugging this in another browser with a better debugger (chrome, ff + firebug) ... of course the bug might not exist on other browsers – hunter Commented Oct 17, 2011 at 17:49
- @hunter: The bug only surfaces in IE (why doesn't this surprise me?) – hugomg Commented Oct 17, 2011 at 17:53
-
are you using the
debugger
mand in your javascript? – hunter Commented Oct 17, 2011 at 17:54 -
Wouldn't using
debugger
still force me to manualy advance step-by-step though? I want to be able to instantly move to the nextthrow
, just like I can in chrome. – hugomg Commented Oct 17, 2011 at 17:55 - 1 The closest you are going to get with the IE JS debugger is setting a condition on your breakpoint. Hopefully that could get you closer. msdn.microsoft./en-us/library/dd565625(v=vs.85).aspx#_break – BNL Commented Oct 17, 2011 at 17:58
1 Answer
Reset to default 6After a while I conclude that there sadly is no easy way to force IE to halt on caught exceptions.
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. This is particularly annoying since I was using console.log calls to help debug >_<
I am trying to debug a "property not found" exception that is only happening in 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).
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. How can I easily find what line is generating my exception?
I am trying to debug a "property not found" exception that is only happening in 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).
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. How can I easily find what line is generating my exception?
Share Improve this question asked Oct 17, 2011 at 17:48 hugomghugomg 70.1k29 gold badges166 silver badges255 bronze badges 6- might be better off debugging this in another browser with a better debugger (chrome, ff + firebug) ... of course the bug might not exist on other browsers – hunter Commented Oct 17, 2011 at 17:49
- @hunter: The bug only surfaces in IE (why doesn't this surprise me?) – hugomg Commented Oct 17, 2011 at 17:53
-
are you using the
debugger
mand in your javascript? – hunter Commented Oct 17, 2011 at 17:54 -
Wouldn't using
debugger
still force me to manualy advance step-by-step though? I want to be able to instantly move to the nextthrow
, just like I can in chrome. – hugomg Commented Oct 17, 2011 at 17:55 - 1 The closest you are going to get with the IE JS debugger is setting a condition on your breakpoint. Hopefully that could get you closer. msdn.microsoft./en-us/library/dd565625(v=vs.85).aspx#_break – BNL Commented Oct 17, 2011 at 17:58
1 Answer
Reset to default 6After a while I conclude that there sadly is no easy way to force IE to halt on caught exceptions.
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. This is particularly annoying since I was using console.log calls to help debug >_<
本文标签:
版权声明:本文标题:debugging - How do I make the Internet Explorer Javascript debugger also pause on caught exceptions? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745572629a2156827.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论