How to debug process with visual studio 2005/2008 And aspnet_wp.exe

Posted By  jalpesh On 11 Jun 2010 11:06:49
emailbookmarkadd commentsprint
No of Views:503
Bookmarked:0 times
Votes:0 times

Introduction

Some time while you are testing you need to debug some things in your asp.net 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.

Steps

We have aspnet_wp.exe(asp.net 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.

Sign Up to vote for this article
Other popular Tips/Tricks
    In this tips, I'm going to explain how to do box selection in visual studio 2010.
    Published Date : 06/Aug/2011
    Microsoft Visual Studio 2010 is a great IDE and everyday I am discovering something new about it. Today I am also going to explain new feature of Visual Studio 2010. In this post I am going to Transact SQL Editor feature in Visual Studio 2010.
    Published Date : 06/Aug/2011
    In this tip we are going to see an new feature for multi monitor support in Visual Studio 2010. In Visual Studio 2010 you can drag windows outside IDE and thus you can use in different monitor
    Published Date : 22/Jan/2011
    There are times when you will want to share the same source code among several projects. A common way to do so is with a shared assembly; you put common functionality in one project and then share the output among several other projects.
    Published Date : 11/Jun/2010
    In the Visual studio 2010, there are lot of new features.one is navigate to window.
    Published Date : 17/May/2010
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top