Go to Tools -> Internet Options -> Advanced and uncheck the two boxes that say "Disable Script Debugging..."
Then when you get your error it will ask if you wish to debug, and then you say Yes, and it will launch Visual Studio and highlight the exact place where things have gone wrong.
You can get Visual Studio Express here.
jeffamaphone
2009-03-26 00:16:30