Re: debugging for multiple versions of IE
- From: totalstranger <totalstranger@xxxxxxxxxxxxx>
- Date: Thu, 02 Apr 2009 12:08:07 -0400
On or about 4/1/2009 20:39, it came to pass that Ben Crowell wrote:
My development environment is Firefox on Linux. I have a javascript app
http://www.lightandmatter.com/calc/inf
that works on Firefox, and I can verify using browsershots.org that it
works on various browsers and operating systems. IE has me tearing my
hair out, however. I don't own a Windows machine, and the only ones I
have access to are at work, where I don't have privileges to install
software, so I can't install Microsoft Script Editor. Via browsershots
and testing at work, I'm finding that my code runs in some builds of
IE 6 but not others. It also seems to run in IE 8, but not in IE 7
(neither of which I have access to at work). This is an open-source
project that I'm doing for fun, so going out and buying three Windows
machines to run IE 6, 7, and 8 is not really on my agenda :-) I do have
hands-on access to one machine running IE 6 on which I get an error
message complaining about syntax, but the message is annoyingly vague --
it tells me I've got an error on a certain line, but it doesn't tell
me which of my nine files the error is in <:-O
Can anyone suggest any sane way to deal with this?
This solution allows me to run IE8, IE7 and IE6 on one machine, YMMV. I see you are running Linux, but perhaps this will help someone using Windows, or you install a Windows image on your HD, or purchase a Windows machine. You must be running XP or Vista, any flavor should work.
Here's how:
Install Microsoft's free Virtual Machine. When initially installed it may complain that you are not running Vista Ultimate or XP Pro, however keep going it will work, well it does here on Vista Home Premium.
http://www.microsoft.com/windows/downloads/default.aspx
Click Microsoft Virtual PC
Select VPC 2007 SP1 or Virtual PC 2007
Get the free VHD images for versions of IE that you don't have installed on your native OS and install them into the Virtual Machine, then run them in the virtual machine. The images are totally isolated from each other and your native OS. Huge URL follows
http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en
You can also find it by searching Google for "ms ie8 VHD image".
Download, expand and install each image you want. They do expire, however updated versions are usually available for download. If you want to use your wireless connection with a virtual machine: Highlight the machine in the VM console, click Settings, click Networking, set adapter 1 to your wireless card, click OK
I currently have IE8 native, with XP/IE7 and XP/IE6 virtual machines. I've found there is a good native debugger for Javascript in IE8 that works. It also allows compatibility mode that allows you to run and see your site in IE7 mode without firing up IE7, although you must go into the Tools-->Compatability to get the site back into IE8 mode. I also test my site with Firefox (my browser or choice), Opera, Safari and Chrome.
.
- References:
- debugging for multiple versions of IE
- From: Ben Crowell
- debugging for multiple versions of IE
- Prev by Date: Re: debugging for multiple versions of IE
- Next by Date: Re: Auto Login
- Previous by thread: Re: debugging for multiple versions of IE
- Next by thread: Re: debugging for multiple versions of IE
- Index(es):
Relevant Pages
|