Oops Null Pointer

Java programming related

Debugging Javascript in IE6

Quick note here on debugging Javascript in IE6 as I found a few handy tips

  • Use firebug lite – my IE fails if you call firebug twice, so load up you page and then click the bookmarklet
    • My IE6 crashes on the firebug lite page so I use another browser to get the bookmarklet code
  • Using firebug lite you can use console.log(‘a msg’) to log to the console
  • Use .toString() on a function when you want to see the function’s code
  • If you can, get the pretty / uncompressed version of the js lib you are debugging (for me it was Highcharts)
Advertisements

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: