Remote Debugging using Visual Studio

To use Visual Studio remote debugging both the remote machine and the local machine need to be in the same domain. Ensure that you are using the same account / password on both machines and that both have Administrator privileges. Then follow the below steps to implement remote debugging:

  1. Log on the remote machine  with the account and password as your local machine.
  2. Run the remote debugger monitor on the remote machine (this is located at C:Program FilesMicrosoft Visual Studio 9.0Common7IDERemote Debuggerx86). To ensure that you will be running the correct remote debugger monitor, it is a good idea to copy the  local machine’s one to the remote machine.
  3. Run the application to be debugged on the remote machine
  4. Open Visual Studio on the local machine
  5. Go to Tools -> Attach to Process which will open the Attach to process dialog .
  6. Locate the Server name in the remote debugger monitor on the remote machine and enter the server’s name in the Qualifier box on the local machine
  7. Locate the application’s process in the Available process section, specifying the correct code type, and then click the Attach button
  8. Set your breakpoints and then run the app on the remote machine and a breakpoint will be hit.

Array

No comments yet... Be the first to leave a reply!