Debugging JavaScript with IE 7

Posted: October 29, 2007 in IE 7, JavaScript, Microsoft, Visual Web Developer 2008 Express Edition

One thing unfortunate about working with JavaScript is the need to debug on major browsers. So, I had to spend some time looking into compatibility issue on IE 7. Fortunately, I found this blog and it was very helpful. So, I installed Visual Web Developer 2008 Express Edition beta 2 and was able to quickly identify the root cause, which was in the difference of data structure representation.

I was disappointed that FireFox and IE would construct different data structure representations. For example, in the array that I am worked with, the data were in index 0 for IE and 1 for Firefox. I also had to use target sub-element within an array element for Firefox to find the data I was looking for, while I don’t needed to use it for IE. As a result, I had to find an IE detection code to add special conditional processing code.

Comments
  1. [...] Check it out! While looking through the blogosphere we stumbled on an interesting post today.Here’s a quick excerpt One thing unfortunate about working with JavaScript is the need to debug on major browsers. So, I had to spend some time looking into compatibility issue on IE 7. Fortunately, I found this blog and it was very helpful. So, I installed Visual Web Developer 2008 Express Edition beta 2 and was able to quickly identify the root cause, [...]

  2. Richard says:

    When using Firefox browser, try the FF extension, Firebug. It does some excellent Javascript debugging, such as step in and step out.

  3. Dave says:

    Hi Richard,

    Thanks for pointing out Firebug. I actually use it all the time on FF. The reason I had to use Visual Web Developer 2008 is because of IE 7.

  4. The error messages that IE7 provides sometime give little insight as to what the problem really is. I really like the Error Console provided with FireFox.

  5. Art says:

    I use Splinetech Javascript Debugger, and I’m quite happy with it. It supports IE only though.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s