remote debugger over internet

Samarth Bharadwaj picture Samarth Bharadwaj · Jun 23, 2011 · Viewed 8.8k times · Source

my setup is as flows: Local development PC: x86 vista with visual studio Client server: x64 server 2008 r2 with static ip and internet.

Currently I connect with it using Remote desktop. Can i configure remote debugger to this setup? if so, how? what must i fill in qualifier field in attach process window.

remote debugger is running as service and there is a user name with login as service privilege.

guides, experiences will make my life little less of a hell. Thanks.

Answer

Robert Hyatt picture Robert Hyatt · Apr 29, 2013

I had a similar problem, and like Hans Passant said above, a VPN is necessary. I was able to attach to the process and debug over the internet by doing the following:

  1. Install the latest microsoft remote debugger on the server.
  2. Install Hamachi on both my local machine and the server and connect so that I was on the same network.
  3. Go to Debug->Attach To Process on my local machine's Visual studios and enter the Hamachi IP address of the server.
  4. Pick "show processes from all users" and pick the process in question.

Note: I was logged in as the exact same user on both machines and had the same password on each.

I hope that helps someone out there.