Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
618 views
in Technique[技术] by (71.8m points)

visual studio - Remote Debugger over internet (Remote IP machine)

My setup: Local PC: x86 vista & visual studio Client server: x64 server ( static ip ).

Currently I connect with it using Remote desktop. Remote Debugger is running as service and there is a user name with login as service privilege.

Can I configure remote debugger to this setup?

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...