Remote Debugging

Remote debugging is fairly easy to set up.

Setting up the remote machine

  1. Install the remote debugging service. You can download it here or find it on the Visual Studio CD
  2. In the configuration Wizard select “Run the “Visual Studio 2010 Remote Debugger” service ” and leave the user as LocalSystem

  3. Under Configure the Firewall for Debugging select “Allow any user to connect to the remote debugger” if the machine you are debugging is on a different network.

  4. If the Machine is on a workgroup you may need to edit the permissions to allow anyone to access the remote debugging service. Run the Visual Studio Remote Debugging Monitor

  5. Go to Tools > Options
  6. To Allow Full Access select “No Authentication” and “Allow any user to debug”

Connecting the remote debugger

  1. To get the visual studio to debug the exact code you need to copy the .PDB file visual studio generates into the same folder the dll’s/exe is located. This can be copied out of the bin folder and must match the same code version as the dlls.

  2. In Visual Studio attach the Debugger to the Process running on the Remote Machine
    1. 1. Go to Debug > Attach to process…
    2. Select Remote (Native only with no authentication) as the Transport
    3. Enter the IP Address or Machine name into “Qualifier”
    4. Select Refresh
    5. Select the process you are debugging and select Attached.

  3. Perform normal actions of the remote machine. You can set breakpoints as normal in Visual Studio
Advertisements
  1. Leave a comment

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: