JavaScript debugging in Internet Explorer

I am working on a relatively sophisticated website driven by JavaScript. It works great in all browsers except Internet Explorer (7, this version is our corporate standard). I get this very curious error:

"A runtime error has occurred. Do you want to debug? Line: 93 865 600. Error: Expected ';'"

The problem is that I do not have 93 million lines of code, and clicking β€œYes” does not apply to Visual Studio, as usual.

I can click β€œNo” and the website continues to work fine, but if the user does not have JavaScript debugging turned off, I don’t want them to see this meaningless error.

Suggestions / Tools / Plugins to figure it out below?

And yes, I learned my lesson, switch and check my project in Internet Explorer more often ...

Thanks,

+4
source share
4 answers

This is not strictly a debugging tool, but I would not be surprised if Ajax DynaTrace helped you track weirdness.

http://ajax.dynatrace.com/pages/learn/solution-tour/ajax-performance-diagnostics.aspx

Alternatively, run your code through JSLint. The error message makes it sound like you have a subtle syntax error that some browsers make.

+2
source

Here are some debugging tools that I use for IE.

And inside IE, make him scream about every other error he encounters in the Options section. Here are instructions for this, you can also read some very useful debugging tips in the slide show.

This will give a better image where the error occurs. If this does not work, you can try to split your scripts without including parts of it, to see which parts or which specific JS Script file are not given to you.

+1
source

This is still my best Javascript debugger for IE: Microsoft Web Developer Express

still much better than the developer toolbar in IE8.

Totti

0
source

I would also use Fiddler2 to view the exact files that are provided to the browser. There may be code on the server that configures files before they are sent. Using Fiddler, you can see what the browser is getting.

Also make sure you are using IE8 as the developer toolbar is built into it. If not IE8, download the IE Developer toolbar as "bron" said.

-1
source

Source: https://habr.com/ru/post/1307383/


All Articles