Wednesday, November 28, 2007

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 comment:

  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


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

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog


My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews