问题描述
我运行Visual Studio 2015年,其中<一个href=\"https://blogs.msdn.microsoft.com/visualstudioalm/2014/11/12/support-for-debugging-lambda-ex$p$pssions-with-visual-studio-2015/\">people索赔的拉姆达前pressions在即时窗口,手表等地的支持。但是,这并不为我工作。
我创建了以下code一个新的控制台应用程序:
I am running Visual Studio 2015, where people claim that lambda expressions are supported in immediate window, watch and other places. But that does not work for me.I created a new console application with the following code:
static void Main(string[] args)
{
var list = new List<int> {1, 2, 3, 4, 5, 6, 7};
}
,然后试图在即时窗口中一些简单的lambda表达式,并观察可以看到这里:
正如你所看到的,它给我的Ex pression不能包含拉姆达前pressions。
我看着在工具 - >选项 - >调试设置,但找不到相关的任何问题。
我运行的版本是VS2015企业,14.0.24720.00更新1
这可能是造成这个问题?
And as you can see, it gives me "Expression cannot contain lambda expressions".I've looked in tools -> options -> debug settings but could not find anything related to the issue.The version I am running is VS2015 Enterprise, 14.0.24720.00 Update 1What could be causing this issue?
推荐答案
这肯定对我的作品,看起来就像当我打勾或者使用管理兼容模式
或使用传统的C#和VB前pression评估
将停止工作。确保那些未被选中。
This definitely works for me, looks like when I tick either Use Managed Compatibility Mode
or Use the legacy C# and VB expression evaluators
it stops working. Ensure those are unchecked.
这篇关于在VS2015即时窗口拉姆达前pressions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!