调试时无法评估表达式 [英] unable to evaluate expression whilst debugging
问题描述
在调试 asp.net 代码(针对 IIS 运行,并使用 Visual Studio 2013)并在断点中并尝试使用快速监视评估变量时,我经常会无法评估表达式".
When debugging asp.net code (running against IIS, and using Visual studio 2013) and in a breakpoint and trying to evaluate a variable using quick watch i quite often get "unable to evaluate expression".
从 asp.net 项目文件夹中删除 .suo 似乎可以解决问题(重新加载解决方案后)
deleting the .suo from the asp.net project folder seems to resolve the issue (After reloading the solution)
这是公认的错误吗?现在在不止一台机器上的 Visual Studio 2013 中获得了很多.
Is this a recognised bug? getting this a lot now in Visual studio 2013 on more than one machine.
推荐答案
我今天在 VS2013 中遇到了这个问题.
I faced it today with VS2013.
转到工具 --> 选项 --> 调试 --> 常规 -->滚动到底部的使用托管兼容模式"并选择该选项.
Goto Tools --> Options --> Debugging --> General --> Scroll to the bottom for "Use Managed Compatibility Mode" and Select the option.
博客截图(网址如下):重新开始调试.希望能帮到其他人.
Screenshot from the blog(url below): Restart you debugging. Hope it helps others.
下面是什么对我有帮助!
Visual Studio 2013 无法评估表达式调试器异常结果证明非常有帮助.
此外,您可以看到@Dreamers 的回答 无法使用 Visual Studio 2013 调试托管代码
Also, you could see @Dreamers answer Unable to debug managed code using visual studio 2013
这篇关于调试时无法评估表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!