After All These Years IE Still Sucks. Debugging Javascript In IE7?
Monday 3 December 2007 - Filed under Code
So I’ve got a huge page full of lovely jQuery script and it all works fine in Firefox.
In IE – not so good. Occasionally it’ll give me a little error in the lower left status bar. But that’s about it. I’m digging around looking for a Firebug for IE but so far haven’t found much. The few ‘plugins’ and toolbars I’ve found are just about as flaky as IE itself. Either it doesn’t work – or I disable it and it continues to run. Lovely.
So does anyone have any suggestions or tools for debugging javascript within IE7?
It is really sad this browser is still such a crappy bit of software. I know my life would be much easier if Microsoft just pulled the plug on it and told everyone “Hey we built a piece of crap. Sorry. Switch to Firefox.”
But I doubt that will ever happen. Thanks Microsoft.
2007-12-03 » Jim Priest
3 December 2007 @ 4:58 pm
This seems to be the best option:
Script Debugger for Windows NT 4.0 and Later
http://blogs.msdn.com/ie/archi.....47912.aspx
Shortcut(http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en)
3 December 2007 @ 5:42 pm
MS Office comes with an optional pretty descent debugger. Visual Studio should work too.
3 December 2007 @ 6:01 pm
I don’t know that I’d blame the lack of a debuging tool on a browser… after all, Firefox nor Sarafi come with any real Javascript debuggers. These are plugins, and not even made by the developers who make the browsers.
IE has come a long way. Firefox on the other hand is taking a step back. It’s performance and stability as of late have been horrific. Firefox crashes a minimum of 5x a day on me (I’m a Firefox user) regardless of which version I’m running. I can’t even get Safari to run on Windows…
So, comparing oranges to oranges, I’ve almost prepared myself to switch to IE. But then again it comes back to lack of a Javascript debugger. Firebug in IE sucks, so what other options are there? If anyone else has a good debugger I’d also be interested!
3 December 2007 @ 6:15 pm
The closest thing I know of is the IE Developer toolbar:
http://www.microsoft.com/downl.....laylang=en
3 December 2007 @ 7:54 pm
The best debugger for IE is Script Editor that comes with MS Office. The free JavaScript debugger that MS offers on their download site sucks.
So go into Office setup, and under some addons/extras there’s MS Script Editor. Install that and IE will use it as JS debugger. Google for detailed instructions.
3 December 2007 @ 8:36 pm
Here ya go. There are lots of good tools on this page. Some cost money and some don’t. Try a few and see what works for you.
http://blogs.msdn.com/ie/archi.....lorer.aspx
3 December 2007 @ 9:40 pm
Thanks all!
@Joe – the IE Developer toolbar doesn’t offer any debugging :(
Erki – I’ve read a few things and assumed the Script editor and the download were the same – I’ll dig up an Office CD tomorrow and check that out.
@Rostislav – I did find a tutorial on how to hook up the free Visual Studio version which I may try tomorrow.
4 December 2007 @ 1:56 am
Introducing: Firebug-Lite!
The Firebug for Non-Firefox browsers!
http://www.getfirebug.com/lite.html
4 December 2007 @ 3:38 am
These two tools from the same company are nowhere near what firebug provides (such as step debugging), but provide some insight into js/css issues, http request/responses, and a console in IE:
Debug Bar
http://www.my-debugbar.com/wiki/ToDo/Beta
Companion.JS
http://www.ieforge.com/CompanionJS/HomePage
4 December 2007 @ 11:12 am
It’s possible to attach Visual Studio to the IE process and do proper debugging with breakpoints and such, including when the code is not ASP.NET. It’s been improved in 2008, but also works in 2005:
http://weblogs.asp.net/scottgu.....gging.aspx
5 December 2007 @ 1:41 pm
Just to follow this up – seems I’m not the only one – the comments on this post “The First Year of IE7″ are hilarious.
http://blogs.msdn.com/ie/archi.....entmessage
5 December 2007 @ 9:32 pm
Ouch – this is really snowballing…
http://www.computerworld.com/a.....rc=hm_list
6 December 2007 @ 1:13 pm
Firebug lite works well for non-firefox browsers. It seems weird you are having IE specific problems with jQuery – I’ve only ran into that once in the last year with Ajax + Google Maps.
7 December 2007 @ 4:27 pm
Bill Gates weighs in:
http://www.molly.com/2007/12/0.....nsparency/
21 December 2007 @ 1:03 pm
Just to followup – a nice post here:
http://www.adaptavist.com/disp.....t+Exploder
Eventually ends up using Aptana Pro?!
6 August 2008 @ 3:12 pm
there is a blog post that talks about “best” options for debugging js in ie.
http://notetodogself.blogspot......in-ie.html