Also, if you have Visual Studio (whether VB, C#, or any other CLR), it will popup a "do you wanna debug" prompt whenever there is a javascript error on your page.
To enable it, goto Tools->Internet Options->Advanced, and uncheck the "Disable Script Debugging" option (it's in the "Browsing" group near the top after accessibility.