Ken Kopczyk

Hurdles in .NET Development

Debugging Javascript in Visual Studio 2005

Posted by Ken on March 12, 2010

A feature of Visual Studio that is not enabled by default is the ability to debug javascript.

To enable this feature, you need to uncheck “Disable script debugging (Internet Explorer)” in the “Advanced” tab of the “Internet Options” dialog in IE:

Debugging is now enabled:

Doing this will also give you access to Visual Studio’s Script Explorer which allows you to view and trace through the stack of scripts that are running within your ASP.NET application behind the scenes:

Warning: Client-side script debugging does slow down the application quite a bit during development. It would be wise to only have this feature enabled when you need to debug javascript.

Note: This information assumes that you are using IE as your default development browser. If you would like to change default browsers, select your website project in the Solution Explorer, and then select “Browse With…” from the File menu:

Alternatively, while the application is running in Debug mode, you can attach the process to another browser and run the two browsers in tandem. Select “Attach to Process…” from the Debug menu to accomplish this:

2 Responses to “Debugging Javascript in Visual Studio 2005”

  1. Roxana said

    I see a lot of interesting articles on your blog.
    You have to spend a lot of time writing,
    i know how to save you a lot of work, there is a tool that creates readable,
    google friendly posts in couple of minutes, just type in google – k2 unlimited content

  2. Clara said

    I read a lot of interesting content here. Probably you spend a lot of time
    writing, i know how to save you a lot of time, there is an online tool that
    creates high quality, SEO friendly posts in seconds, just
    type in google – laranitas free content source

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: