Wednesday, July 02, 2008

Remote Debugging in Microsoft ASP.Net

Debug an Asp.net application or a web service, which runs in a remote host
(version of code does not need to be a debug built)
  1. Install Visual Studio Remote Debugging Monitor(MSVSMON) in the remote host (server) – recommend to install as a windows application and make sure MSVSMON is listening for connections
  2. Start Visual Studio and pull up source code for the relevant application - if you try to add break points to irrelevant code, break points will not be reached.
  3. From main menu select -> Debug >> Attach to Process
    For the Qualifier use domain\user.name@machinename (Ex CSG\Charith.Gunasekara@CSG-UATWebTest) and refresh process list
  4. Select required process from the (in this case asp.net work process(aspnet_wp.exe))
    Try inserting couple of breakpoints to the source code and browse the website.
  5. This is useful if you cant replicate errors in local machine while investigating exceptions
Reference: Set Up Remote Debugging (MSDN)

1 comment:

NisH™ said...

Yeah good post about Debuging....keep up good Works.

Azure Storage Account Types

Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...