views:

65

answers:

3

I have some code that I thought I had written so that it would play nice on IE. But apparently it does not. I use IE8 for my testing and get quite frustrated with the built-in debugging 'tool'. I found that firebug has a javascript tool that debugs for IE but I have to click it for every page, wait for it to load and then test my script. Is there a way to make IE ALWAYS load the firebug .js file? I tried searching for way to set up a custom header file for my IE installation but was unsuccessful.

Is there another tool out there that would be better/easier to use? Another way to test scripts for IE compatibility?

+1  A: 

IE7 and 8 provided the IE developer toolbar. This is similar to firebug for DOM inspection, script debugging and style tracing.

Edit:

For IE 8, the toolbar is already packaged with the browser:

The Developer Toolbar is not compatible with Internet Explorer 8. Please use the developer tools included with Internet Explorer 8. Press F12 or click the 'Developer Tools' entry in the Tools menu to begin using the tool. Click here for more information on IE8 Developer Tools.

Joel Potter
I am a big Firebug user and I actually slightly prefer the new IE Developer toolbar for IE8
JohnFx
@John, except for some dynamicism issues, I prefer webkit's developer tools over both, but that's just me.
Joel Potter
I don't see the developer toolbar for ie8... only for ie6 and ie7. Is there an easy way to have both ie7 and ie8 installed on my machine?
baiano
@baiano, In IE8, just hit F12. See my edit.
Joel Potter
+1  A: 

You can also use Visual Studio and attach to the process in question, then just debug in VS. Pretty good debugging tools, and lets you debug IE6 as well.

Robusto
I looked at visual studio and found the trial downloads but the only pricing information I could find suggested that I would have to pay 1k+ to keep this as a long-term solution. Is there a way to get this at a reasonable price?
baiano
Visual Web Developer Express does all that, and is free: http://www.microsoft.com/express/downloads/#2010-Visual-Web-Developer
Jim Blackler
A: 

Try my log4javascript, which is a logging library that works in every major browser, including IE 5 and later.

Tim Down