配置 Visual Studio 2010 远程调试器 [英] Configure Visual Studio 2010 Remote Debugger

查看:89
本文介绍了配置 Visual Studio 2010 远程调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在 Windows 上安装了 Visual Studio 2010 远程调试器Server 2003 (x86) 服务器,并尝试连接到它导致以下错误:

I have installed the Visual Studio 2010 Remote Debugger on a Windows Server 2003 (x86) server, and am attempting to connect to it results in the following error:

无法连接到 MicrosoftVisual Studio 远程调试监视器名为服务器名称".视觉工作室目标计算机上的远程调试器无法连接回这台计算机.防火墙可能会阻止通过 DCOM 与本地通信电脑.请参阅帮助协助.

Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'ServerName'. 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.

我检查了我的 Windows 防火墙设置,并确保在我的本地机器上启用了文件共享.我已经确保 DCOM 正在服务器上运行,以及调试服务.据我所知,没有涉及实际的防火墙.

I have checked my Windows firewall setting, and ensured file sharing is enabled on my local machine. I have ensured that DCOM is running on the server, as well as the debugging service. There are no actual firewalls involved that I know of.

我还需要更改什么才能使其正常工作?

What else do I need to change to get this to work?

推荐答案

我刚刚遇到了连接问题.问题是客户端 PC(我的桌面)可以连接到运行调试监视器的远程主机,但远程主机无法将数据发送回我的桌面.

I just ran into connectivity issue. The problem was the Client PC (my desktop) could connect to Remote Host running debug monitor, but the Remote Host could not send data back to my desktop.

事实证明这是由 Windows 防火墙中的配置文件"设置引起的.防火墙规则仅限于公共"配置文件 - 但我的桌面已连接到本地域.将设置更改为域"可确保远程主机可以将调试数据传送回客户端桌面.

Turns out that it was caused by the 'Profile' setup in Windows Firewall. The Firewall rule was being limited to 'Public' profile - but my desktop was connected to the local domain. Changing the setting to 'Domain' ensured the Remote Host could communicate debugging data back to Client desktop.

在 Windows 防火墙下检查 -> 入站规则 -> Microsoft Visual Studio -> 高级选项卡.

Check under Windows Firewall -> Inbound Rules -> Microsoft Visual Studio -> Advanced Tab.

干杯,J

这篇关于配置 Visual Studio 2010 远程调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆