远程调试不起作用."无法附加到进程.RPC 服务器不可用." [英] Remote Debugging not working. "Unable to attach to process. The RPC server is not available."

查看:87
本文介绍了远程调试不起作用."无法附加到进程.RPC 服务器不可用."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的开发工作站运行的是 VS2012 Update 1.操作系统是 Windows 7 Professional Service Pack 1 x64.我有一台运行 Windows 8 的笔记本电脑,我在上面安装了 VS2012 远程调试器.我已经启动了 msvsmon,它静静地坐在系统托盘中,或者在 Windows 8 上通过什么来传递它.

My development workstation is running VS2012 Update 1. The OS is Windows 7 Professional Service Pack 1 x64. I have a laptop running Windows 8 onto which I've installed the VS2012 Remote Debugger. I've started msvsmon and it's quietly sitting in the system tray or what passes for it on Windows 8.

我在 VS2012 中需要进行调试的位置设置了一个断点.在 VS2012 中,我单击调试 |附加到进程... 我看到一个对话框,显示了在我的机器上运行的进程列表.我将机器名称更改为笔记本电脑的名称.

I have set up a breakpoint in VS2012 at a location where I need to do some debugging. In VS2012, I click on Debug | Attach to Process... I get the dialog showing the list of processes running on my machine. I change the machine name to the name of the Laptop.

我有两个不同的问题:

问题 1:

在运行 Windows 防火墙的情况下,VS2012 连接到远程调试器服务器.我看到笔记本电脑上运行的进程列表.我选择要调试的一个,然后单击附加".我收到无法附加到进程.RPC 服务器不可用."

With Windows Firewall running, VS2012 connects to the remote debugger server. I see the list of the processes running on the Laptop. I choose the one I want to debug and click Attach. I get "Unable to attach to process. The RPC server is not available."

这是怎么回事?

问题 2:

我关闭了桌面上的 Windows 防火墙.当我尝试连接到笔记本电脑上运行的进程时,它会连接并加载所有符号.到现在为止还挺好.一旦所有这些都完成,我就会执行会导致我的断点被击中的操作.远程机器上的进程冻结了,但 VS2012 也是如此.我已经坐在这里等了 10 分钟,没有任何变化.那时,我杀死了远程机器上的 msvsmon,我的程序随之消失,但 VS 仍然被锁定.

I turn off Windows Firewall on my desktop. When I try to connect to the process running on the laptop, it connects and loads all of the symbols. So far so good. Once all of that is finished, I perform the action that would cause my breakpoint to be hit. The process on the remote machine freezes, but so does VS2012. I've sat here as long as 10 minutes waiting with no change. At that point, I kill msvsmon on the remote machine and my program goes away with it, but VS is still locked up.

有什么想法吗??

推荐答案

我在 VS 2013 中遇到了类似的问题,显示消息无法附加到进程.RPC 服务器不可用".

I have faced a similar issue in VS 2013 showing the message "Unable to attach to process. The RPC server is not available".

我已通过取消-检查调试>选项和设置>常规选项卡中的使用托管兼容模式"选项解决了这个问题.

I have resolved this by un-checking the "Use Managed Compatibility Mode" option from Debug > Options and Settings > General Tab.

这篇关于远程调试不起作用."无法附加到进程.RPC 服务器不可用."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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