如何进行VS 2010跨域远程调试?
有人可以向我指出一些使用 Visual Studio 2010 进行远程调试的“傻瓜式”分步指南吗?
我需要远程调试 Web 服务。我的电脑和服务器在不同的域。
我已经在 MSDN 上阅读这篇文章两天了,但仍然没有线索。
最好的问候, Primoz
我收到此错误:
无法连接到 Microsoft Visual Studio 远程调试监视器 名为“远程主机”。视觉效果 目标上的 Studio Remote Debugger 计算机无法连接回此 电脑。防火墙可能是 阻止通过 DCOM 进行通信 本地计算机。请参阅帮助 寻求帮助。
我使用的是win 7,远程服务器上是win 2008 r2。我关闭了两端的防火墙。
Can someone please point me to some "for dummies" step-by-step guide for remote debugging using Visual Studio 2010?
I need remote debug a web service. My computer and the server are in different domains.
I've been reading this in MSDN for two days and still have no clue.
Best regards, Primoz
I get this error:
Unable to connect to the Microsoft
Visual Studio Remote Debugging Monitor
named 'remote.host'. The Visual
Studio Remote Debugger on the target
computer cannot connect back to this
computer. A firewall may be
preventing communication via DCOM to
the local computer. Please see Help
for assistance.
I'm using win 7 and on remote server is win 2008 r2. I turned off firewall on both ends.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现在不同域中的服务器上进行远程调试需要您将域帐户添加到管理员组和远程调试器的“权限”部分。
I found out that Remote debugging on a server that's in a different domain requires you to add your domain account to the administrators group and to the Permissions section of the remote debugger.
检查您的 win7 机器是否位于其他防火墙后面,例如家庭路由器和公司网络中的防火墙。您可能需要向这些防火墙添加规则以允许连接通过。如果您的家庭路由器使用 NAT,您可能还需要其他配置(服务器查看路由器的 IP 并向那里发送数据包,需要配置路由器以转发这些数据包的位置)。
如果所有其他方法都失败,请尝试从服务器到开发计算机的跟踪路由,这可能会给您提供有关是什么阻止数据包流入的线索。(我假设是网络问题,而不是登录问题)。
Check if your win7 machine is not behind another firewall, such as ones found in home routers and corporate networks. You might need to add rules to these firewalls to allow the connection to go through. You might also need additional configuration if your home router uses NAT (the server sees the router's IP and sends the packets there, the router needs to be configured about where it should forward these packets).
If all else fails try traceroute from the server to your development machine, this might give you a clue as to what's stopping the packets from flowing in. (I am assuming a network problem, not a login issue).
对于跨域调试还需要编辑本地计算机上的
C:\Windows\System32\drivers\etc\hosts
文件。只需添加远程计算机的 IP 地址,如下所示:
其中:
172.172.172.172
- 远程服务器的 IP 地址SRV-TEST-ADRESS
- Visual Studio 远程调试器中的服务器名称远程计算机监控
您可以通过
cmd
中的ipconfig
了解您服务器的IP地址如果您需要更多详细说明,请查看此 链接。
For across domain debugging also need to edit
C:\Windows\System32\drivers\etc\hosts
file on local computer.Just add remote computer's ip address like this:
Where:
172.172.172.172
- ip address of your remote serverSRV-TEST-ADRESS
- Server's name from Visual Studio Remote DebuggerMonitor on remote computer
You can know your server's ip address by
ipconfig
incmd
If you need more details explanation, check this link.