title: Can I get the Internet Explorer debugger to break into long-running JavaScript code?
body: <p>I have a page that has a byzantine amount of JavaScript code running.  In Internet Explorer only, and only version 8, I get a long-script warning that I can reliably reproduce.  I suspect it is event handlers triggering themselves in an infinite loop.</p>
  
  <p>The developer tools are limping horribly under the weight of the script running, but I do seem to be able to get the log to tell me what line of script it was executing when I aborted, but it is inevitably some of the deep plumbing of the <a href="http://en.wikipedia.org/wiki/Ext_%28JavaScript_library%29" rel="nofollow noreferrer">ExtJS</a> code we use, and I can't tell where it is in my stack of code.</p>
  
  <p>A way of seeing the call stack would work, but preferably I'd like to be able to just break into the debugger when I get the long script warning so I can just step through the stack.</p>
  
  <p>There is a similar question posted, but the answers given were for a not-the-right-tool, or the not terribly helpful advice to eliminate half my code at a time on a binary hunt for the infinite loop.  If my code were simple enough that I could do that, it probably wouldn't have gotten the infinite loop in the first place.  If I could reproduce the problem in <a href="http://en.wikipedia.org/wiki/Firebug" rel="nofollow noreferrer">Firebug</a>, I'd probably be a lot happier too.</p>