Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internet Explorer producing wrong line number for error

I have a jsp with lots of javascript code. Whenever there is a javascript error on the page, shown in the status bar of the IE browser, the line number reported to contain the error, does not match with the line number that actually contains the error. I am doing a right click>view source to find the line number reported. But that line does not contain the error. The error, I assume, is in some other line. What could be the reason for the erroneous line numbers being reported.

like image 878
The Machine Avatar asked Jan 06 '10 09:01

The Machine


1 Answers

As noted in other answers, IE is bad at reporting line numbers for errors. However, the built-in debugger (press F12) in IE8 and later is much more helpful, so I suggest you try that.

like image 183
Tim Down Avatar answered Nov 15 '22 16:11

Tim Down