Walt Ritscher: Thinking about code

Thoughts about .Net - Thoughts about code

  Home :: Contact :: Syndication  :: Login
  171 Posts :: 0 Stories :: 80 Comments :: 23 Trackbacks

Archives

Post Categories

Image Galleries

About Me

Interesting Blogs

My other blogs

Resources

ASP.Net makes it very easy to write and debug server side code.  I've found when talking to ASP.Net developers that many of them don't know that you can debug clent side script with VS.NET  too.

This week I was working on a client web site and needed to to write some client-side JavaScript.  This reminded me to post a quick how-to on client side debugging.

Steps

  1. Enable client-side script debugging in Internet Explorer
    1. Open Microsoft Internet Explorer.
    2. On the Tools menu, click Internet Options.
    3. On the Advanced tab, locate the Browsing section, and uncheck the Disable script debugging check box, and then click OK.
    4. Close Internet Explorer.
  2. In your JavasSript function add the keyword debugger . This causes VS.NET to switch to debug mode when it runs that line.
  3. Run your ASP.Net application in debug mode.

That's all there is to it.


posted on Sunday, September 19, 2004 12:12 PM

Feedback

# re: TIP: Debugging JavaScript with Visual Studio.NET 2/13/2006 12:46 PM David Osorno
Hello,

I was looking for an answe in how to debug javascript.

It worked perfectly!!

Thanks very much

# re: TIP: Debugging JavaScript with Visual Studio.NET 2/14/2006 11:14 PM Walt Ritscher
Glad it was useful to you. This article has been around for awhile. Did you find it from a search engine?

# re: TIP: Debugging JavaScript with Visual Studio.NET 11/9/2006 10:05 PM Jayesh Jadhav
Yes "I" found it from a search engine

# re: TIP: Debugging JavaScript with Visual Studio.NET 1/6/2007 8:29 PM Naveen Kumar
It worked for me.. Very useful.. Thanks

# re: TIP: Debugging JavaScript with Visual Studio.NET 1/10/2007 8:24 AM Aaron
THANKS

Comments Closed! Due to the spam creeps.
If you want to comment, use the contact page and send me an email and the URL of this Post.
Title  
Name  
Url

Comments   
Enter the code you see: