Click here to Skip to main content
13,900,427 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


Posted 10 Apr 2012
Licenced CPOL

How to Debug in IE on a Mac

, 10 Apr 2012
Rate this:
Please Sign up or sign in to vote.
Here's how to configure a Mac to debug web sites in IE

I and most devs I know really dislike Internet Explorer. We dislike it because it makes our lives needlessly painful by forcing us to pay the IE tax: spending time and energy making our web sites work in it.

Yet no matter how we feel about IE, we probably can’t just ignore it (unlike some lucky bastards). To add insult to injury, non-Windows devs have to go through quite a bit of hassle to get IE on their boxes. For instance, here’s what I had to do to get my Mac configured to debug in IE:

1. Install VirtualBox

VirtualBox is an Open Source VM from Oracle. It’s easy to set up and works pretty well. You can get the Mac image here.

2. Get Windows Images

Greg Norton created a really nice utility which automates installing Microsoft IE virtual machines on VirtualBox. You can install all IE images by running the following command:

curl -s | bash

Alternatively, you can install specific versions of IE:

curl -s | IEVMS_VERSIONS="7" bash
curl -s | IEVMS_VERSIONS="8" bash
curl -s | IEVMS_VERSIONS="9" bash

Please note that installing these images will take quite a bit of time, especially if you’re installing all of them (it took over 2 hours on my machine).

3. Configure Localhost on Windows

Finally, to make your debugging experience more pleasant, it would help if the Windows VM could recognize a localhost website running on the Mac. For reasons I wasn’t able to clarify, will allow you to reference localhost.

To make it work correctly, just add the following line in your C:\windows\system32\drivers\etc\hosts file:   localhost

Note that I had to set my networking setting in the VirtualBox VM to NAT for this to work correctly. Your mileage may vary.


You May Also Like


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04 | 2.8.190306.1 | Last Updated 10 Apr 2012
Article Copyright 2012 by AlexTatiyants
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid