remote debugger over internet

前提是你 提交于 2019-11-29 17:14:36

问题


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:

  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.




回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!