Geeks With Blogs
Devin Rader's Blog I write the code...

Just a quick tip in case you ever need/want to be able to debug JavaScript from Visual Studio.

  1. Open up the Internet Options in IE
  2. Open the “Advanced“ tab
  3. Make sure that the “Disable Script Debugging” option is unchecked
  4. 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.

Posted on Monday, October 31, 2005 6:26 PM | Back to top


Comments on this post: Debugging JavaScript in VS2003

# re: Debugging JavaScript in VS2003
Requesting Gravatar...
thanks a lot!!
Left by just me on Dec 15, 2007 6:29 PM

# re: Debugging JavaScript in VS2003
Requesting Gravatar...
Thanks ,it realy helped me
Left by mohammed on Mar 28, 2010 3:43 AM

Your comment:
 (will show your gravatar)


Copyright © Devin Rader | Powered by: GeeksWithBlogs.net