最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to debug a stack overflow error in IE8 - Stack Overflow

programmeradmin3浏览0评论

In my application, I am getting following error in IE8 (IE7 standards document mode)

It says

SCRIPT2343: Stack overflow at line: 1 
SCRIPT28: Out of stack space 
jquery-min.js, line 1 character 30159

I do not get these errors in Firefox and Chrome.

Since my application code is quite huge, I am unable to understand how do I debug exactly in IE. Is the jquery-min.js that IE is saying the actual cause OR that might not necessarily be the issue?

Can I use the Developer toolbar to somehow debug this stack overflow issue? Or is there another way to debug?

In my application, I am getting following error in IE8 (IE7 standards document mode)

It says

SCRIPT2343: Stack overflow at line: 1 
SCRIPT28: Out of stack space 
jquery-min.js, line 1 character 30159

I do not get these errors in Firefox and Chrome.

Since my application code is quite huge, I am unable to understand how do I debug exactly in IE. Is the jquery-min.js that IE is saying the actual cause OR that might not necessarily be the issue?

Can I use the Developer toolbar to somehow debug this stack overflow issue? Or is there another way to debug?

Share Improve this question edited Aug 13, 2021 at 21:53 halfer 20.4k19 gold badges109 silver badges202 bronze badges asked Jul 23, 2013 at 9:47 copenndthagencopenndthagen 50.9k105 gold badges313 silver badges491 bronze badges 10
  • Did your code uses bootbox.js library ? – Aneesh Mohan Commented Jul 23, 2013 at 12:10
  • No..it uses bootstrap.js... – copenndthagen Commented Jul 23, 2013 at 12:13
  • I came across the same situation and got stuck for days with it. I had this problem while calling model pop ups. During my long search I've seen a bug registered for JQuery-UI plugin with same characteristics.Mine got fixed by taking latest version of Jquery-ui and bootbox.js(which is someway derived from bootstrap)- I am not sure whether it is your problem. – Aneesh Mohan Commented Jul 23, 2013 at 12:17
  • It might be the issue...but like I said...i have no clue where the problem lies...the only clue that I have now...is I get the error once the modal div (which uses bootstrap) is loaded...and i also get to see the same stack overflow error when I click anywhere on the page...So does that mean the issue might be related to a click event (once the modal div has loaded)? – copenndthagen Commented Jul 23, 2013 at 12:37
  • That was the behavior i had. But I had the issue mainly while using modal confirmation. I think the issues are related and taking the latest of bootstrap will resolve the issue. – Aneesh Mohan Commented Jul 23, 2013 at 12:40
 |  Show 5 more ments

1 Answer 1

Reset to default 3

You can debug script in IE using IE developer tools. Just press F12 to activate developer tools. IE also es with an in built developer tool like Google chrome(not not that user friendly). But you can still use it to debug script and to watch call stack. use debugger; like we use in other debuggers.

You can get better control in script debugging using visual studio. If you a .Net developer you can use VS itself to debug JavaScript.

Find more here

发布评论

评论列表(0)

  1. 暂无评论