Monday, October 31, 2005 6:26 PM
Just a quick tip in case you ever need/want to be able to debug JavaScript from Visual Studio.
- Open up the Internet Options in IE
- Open the “Advanced“ tab
- Make sure that the “Disable Script Debugging” option is unchecked
- Make sure the “Display a notification about every script error is checked

Once you have set up the internet options, then all you need to do is where ever you want the javascript code to break, add the debugger; command.

Now when you run your app in in VS debugger, Visual Studio will break on the debugger statement and let you step through the client side code. Of course, if there is an error in the code, VS will automatically break and let you step into the offending code to debug the problem. Another great feature is that you can use the VS Command Window and Watches to examine contents of your JavaScript objects.