XP Embedded 上的 Visual Studio 远程调试
我需要在运行 XP Embedded 的远程计算机上调试一些 C# 代码。我在不同的 Windows 操作系统上进行了多次远程调试,并且都运行良好,但我认为 XP Embedded 操作系统缺少一些东西。
在过去的几天里,我绞尽脑汁,阅读并尝试一些东西,但似乎没有任何效果。因此,如果您遇到过同样的情况并找到了解决方案,请提供帮助。这是我到目前为止所做的事情:
- 成功建立了到XP Professional环境的远程调试连接,所以我知道我的远程配置没有任何问题。
- 在嵌入式环境中启动了在专业环境中运行的相同服务。
- 在本地和远程计算机上配置具有相同名称和密码的DCOM 权限、防火墙、本地用户。授予本地用户管理员权限。
- 在本地用户帐户下将 msvsmon.exe 作为应用程序和服务启动,并且还具有作为服务登录的权限。
- 三次检查机器之间没有其他防火墙可能会丢弃远程调试数据包。
如果我在嵌入式计算机上使用无身份验证(仅限本机)模式,则远程调试可以正常工作并且我可以看到进程。否则,我会收到错误: 无法连接到名为“[NAME]”的 Microsoft Visual Studio 远程调试监视器。调试器无法连接到远程计算机。这可能 是因为远程计算机不存在或可能有防火墙 阻止与远程计算机的通信。
I need to debug some C# code on a remote machine running XP Embedded. I did remote debugging on several occasions on different Windows operating systems and all worked well, but I think that the XP Embedded OS is missing something.
I'm popping my brains out in the last couple of days, reading and trying stuff, but nothing seems to work. So if you have been in the same situation and found a solution, please help. Here is what I did up to now:
- Successfully established a remote debugging connection to an XP Professional environment, so I know that there's nothing wrong with my remote configuration.
- Started the same services on the Embedded environment that are running on the Professional environment.
- Configured DCOM permissions, firewall, local users with same name and passwords on both local and remote machines. Gave local users administrator rights.
- Started msvsmon.exe both as an application and as a service, under the local user account, wich also has log on as a service rights.
- Triple-checked that there is no other firewall between the machines that could drop remote debugging packets.
If I use the No authentication (native only) mode on the Embedded machine, the remote debugging works and I can see the processes. Otherwise, I get an error:
Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named '[NAME]'. The debugger cannot connect to the remote computer. This may
be because the remote computer does not exist or a firewall may
be preventing communication to the remote computer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 WireShark 捕获发送到远程 XP 嵌入式设备的数据吗?如果您收到 TCP 确认,至少您会知道这不是防火墙问题。
Can you use WireShark to capture the data going to the remote XP embedded device? If you get a TCP acknowledgement, at least you'll know it's not a firewall problem.
您是否尝试使用管理员权限启动 msvsmon.exe?也许这就是问题所在,John Robbins 的一篇文章对此进行了解释: http://www.wintellect.com/CS/blogs/jrobbins/archive/2010/06/15/vs-remote-debugging-across-workgroups-or -domains.aspx。
Did you tried to start msvsmon.exe with admistrator rights ? Maybe that is the issue, a post by John Robbins explains it : http://www.wintellect.com/CS/blogs/jrobbins/archive/2010/06/15/vs-remote-debugging-across-workgroups-or-domains.aspx.