Take the 2-minute tour ×

I am using Visual Studio 2010 Express Developer edition. Developing a Website. I'm using JavaScript in my .aspx pages. How to put breakpoints in Javascript.

Any help is highly appreciated.

Thank You

share|improve this question
What edition? C#? VB.NET? WebDeveloper? –  Oded May 17 '11 at 12:15
Start accepting some questions first –  Jan Jongboom May 17 '11 at 12:17
add comment

7 Answers

If you are using Web Developer Express you can do this within Visual Studio - here are the instructions.

If you are using a different Express edition, you will have to use a browser tool for client side debugging - for example Firebug. IE and Chrome have built in developer tools that have this kind of functionality.

share|improve this answer
add comment

You can use your browser's debugger :

  • For Firefox, you can use Firebug (http://getfirebug.com).
  • Chrome contains an embedded debugger.
share|improve this answer
add comment

From memory you will need to do the following to get JS debugging in Visual Studio:

  1. Ensure that Internet Explorer has script debugging enabled (somewhere in tools -> options) - this is the bit most people don't know about.
  2. Then go into the .aspx and add a breakpoint by clicking in the left margin of the line of Javascript you want to debug.
  3. Launch the website project in debug mode (F5) and hit the page using IE - your breakpoint should then hit.

As noted by other people you can use a host of other (usually better) tools that come with other browsers.

share|improve this answer
add comment

If you're debugging IE, use the following links:

For Firefox, I recommend Firebug.

For Chrome, you can use the Developer's Tools debugger.


Here's a comprehensive list of debugging JavaScript in each browser:


share|improve this answer
Thank You very Much Very Helpful –  ssmsnet May 19 '11 at 11:20
add comment

I like Firebug, plugin for Firefox.

share|improve this answer
add comment

I think the idea is to use the Attach to process option of the Debug menu; but to be honest, I've never had much luck getting VS to do this fluidly (though I remember it working at times, success is spasmodic at best), maybe tabbed browsing has made this an issue - I'm unsure.

One thing I can recommend, however, and we might get a few hecklers, are the Developer Tools of IE9. If nothing else, IE9 has become an invaluable tool for me recently simply because of its Javascript debugging capabilities. Here's an MSDN article to get you started with this.

share|improve this answer
add comment

Using FireBug & Internet Explorer Debuging tool let you debug and put breakpoint on your javascript files

share|improve this answer
add comment

Your Answer


