Quantcast
Channel: Weebtutorials » Web Development
Viewing all articles
Browse latest Browse all 21

How to debug scripts in IE7

$
0
0

So, i just finished up a project on which i had quite a few problems. The majority of which were IE7 script errors, total nightmare! I have never really had to debug in IE7 before so was unsure how to go about it.

I usually use IETester for any compatibility tests, but the script was simply causing the program to crash. After realising i was going to need an alternative test environment i quickly ran to google! And thats where i found this:

Micosoft VPC image

Microsoft have a number of virtual PC’s available for download from the Windows Virtual PC VHD page. Each comes with a different version of IE installed and ready to use.

After installing this and running the site however i realised it wasnt much use! I was simply receiving a generic “A script has caused an error on this page” message and then had to stop the script. This method of testing would be good for your basic HTML/CSS browser compatibility checks though!

IE8 Browser mode

After some more google bashing i found out about IE8 browser mode. This basically allows you to run IE8 as if it were IE7. Very handy for me, as i have IE8 installed on my windows 7 machine.

To access browser mode simply open IE8 and press ‘F12′. At the top of the pop-up screen that opens you should now see ‘Browser mode: IE8′. Simply click this button and change to IE7 mode.

Now, refresh the page and an errors should display in the console. Easy as that, all you have to do now is fix the actual problem!

I’m not 100% sure, but i would think IE9 also has browser mode for those that dont have IE8 installed.

The post How to debug scripts in IE7 appeared first on Weebtutorials.


Viewing all articles
Browse latest Browse all 21

Latest Images

Trending Articles



Latest Images