Friday 14 October 2011

Visual Studio Remote Debugging - Reminder Checklist

Steps to implement remote debugging.
  1. You need to run msvsmon.exe on the remote pc
    1. Share this folder C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger
    2. Go to remote and navigate to shared folder
    3. copy Remote Debugger folder onto remote pc
    4. run the relevant 32 or 64 bit version of msvsmon.exe
    5. Not sure on the permissions required for this but I know it works if you are an Administrator on this machine.
  2. Double click msvsmon.exe on remote pc
    1. Go to Tools > Permissions and add the user that is logged onto the dev machine.
    2. Go to Tools > Options and copy the string that is in server name box - eg "DomainName\username@machinename"
  3. Start the web app to be debugged on the remote machine
  4. In Visual Studio on local machine - Debug > Attach to process
    1. Leave Transport as Default and in the Qualifier paste the server name copied in Step 2.2 above and click Refresh
    2. Select w3wp.exe to attach to
  5. Start debugging.

No comments: