远程调试msvsmon.exe VS2015或无法附加到进程时表达式计算器中的内部错误。 rpc服务器不可用

时间:2016-11-03 15:24:21

标签: c# debugging visual-studio-2015 remote-debugging visual-studio-debugging

C#.Net4.5编写的系统。我正在尝试远程调试我们的一个Web API。我在服务器上使用msvsmon.exe(2015)并在我的本地运行Visual Studio 2015

我可以连接处理没有问题,断点正在被击中,我也确定我运行相同版本的代码,因为我手动将dllpdb文件从我的本地机器复制到服务器

我甚至无法检查字符串,当它们被触发到端点时我得到Internal error in the expression evaluator。要解决此错误offered solution is to tick Managed Compatibility Mode Tools -> Options -> Debugging中的问题,当我这样做时,当我尝试在调试窗口中附加到进程时,我得到unable to attach to the process. the rpc server is unavailableoffered is to untick that same box,lol。

的解决方案

我在调试选项中也有tried in vain to enable Use the legacy C# and VB expression evaluators,但这没有任何好处。

我相信现在有人遇到过这个问题.... 如何在VS2015上进行远程调试时检查对象?

1 个答案:

答案 0 :(得分:0)

我遇到了错误“无法附加到进程.rpc服务器不可用”,之前与防火墙有关,就像Hans Passant的建议一样,你可以在关闭/禁用防火墙或其他第三方后再次测试它工具。当然,您也可以将VS Devenv.exe添加到此线程的防火墙允许列表中,再次进行调试。

WP CLI docs