How to debug process with visual studio 2005 + aspnet_wp.exe

Some time while you are testing you need to debug some things in your application. Suppose you have run the application with ctrl + f5 and now you want to debug some things, then there are two things either you close the browser and press f5 and start debuging but if your application is heavy that will waste lots of time for your application, second way is some thing tricky but you can debug things.

We have aspnet_wp.exe( worker process) running on machine where iis and application is installed. Now suppose at present you are browsing default.aspx page and you want to debug it without pressing f5 . Then go to the your visual studio IDE -> Debug menu-> Attach Process. Select the aspnet_wp.exe process and click 'attach to process'. Now your application instance will bind with code. You can set the debug point as you do with normal debugging and it will work just as normal debugging.

So you can start debugging without wasting so much time.

Happy Programming...


  1. hi,

    i am facing something strange. aspnet_wp is not appearing in the list!!

    i am using vs2005 on windows server 2003.

    can you suggest anything?

    - ashish sehajpal


Post a Comment

Your feedback is very important to me. Please provide your feedback via putting comments.

Popular posts from this blog

Creating PDF with ASP.Net MVC and RazorPDF

Horizontal and vertical scrollbar in HTML5 and CSS3

How to create Rest API(Web API) with ASP.NET Core 1.0