问题
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.
回答1:
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:
- Install the latest microsoft remote debugger on the server.
- Install Hamachi on both my local machine and the server and connect so that I was on the same network.
- Go to Debug->Attach To Process on my local machine's Visual studios and enter the Hamachi IP address of the server.
- 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.
回答2:
There's no way to channel your debugger to work over Remote Desktop.
Check out How to: Set Up Remote Debugging, specifically the "Configuring the Windows Firewall" section. You will need make sure you can connect to the correct ports, which will require Software and/or Hardware firewall changes. A VPN could be part of the solution (as @Hans Passant suggested in his comment).
A simpler answer may be to install Visual Studio on a machine within the same network as where you're trying to debug. Then your debugger is making a local connection and you are still interacting with the remote network via Remote Desktop. I'm not sure if this is an option.
来源:https://stackoverflow.com/questions/6458454/remote-debugger-over-internet