开发者

javascript debugging in IE7?

开发者 https://www.devze.com 2023-03-24 02:50 出处:网络
I run Win XP in virtual box with IE7 for debugging sites that have to work in IE7. I only have issues in IE7, not IE8, IE9, Firefox or Chrome.

I run Win XP in virtual box with IE7 for debugging sites that have to work in IE7. I only have issues in IE7, not IE8, IE9, Firefox or Chrome. How would I find what JS file IE is talking about when JS error happens?

I know about: "IE Dev Toolbar" - but it doesn't give you this information either.

Here are the errors that I get in IE7 there are 3 errors:

Line 67 char 3(Expected identifier, string or number)
Line 4012 char 9 (Object doesn't support this property method)
Line 4065 char 9 (Object doesn't support this property method)

Actual html when saved as file only has 270 lines. So - errors gotta be in external JS files. I now there are other questions like this and I looked through them - 开发者_Go百科but didn't find an answer to this question.


Install the debugger that comes with Visual Studio - when you click on the error details in IE you will have an option to debug it with the VS Debugger.


I have an IE7 virtual machine; however, when it get's difficult to debug what's going on I've had good success being able to debug IE7 issues by using IE8 and setting it to "Compatibility View". There are some differences, but they appear to be documented.

Also, I know you are also able to set both the browser mode and document mode to IE7 and IE8 within IE9 (in addition to other debugging advancements), but since I have an IE8 virtual machine, I haven't felt compelled to do so, yet. But here's a link that discusses that a bit more.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号