为什么“调试器中的lambda表达式的评估无效”? [英] Why is "Evaluation of lambda expressions is not valid in the debugger"?

查看:205
本文介绍了为什么“调试器中的lambda表达式的评估无效”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个看似无辜的代码片段,我输入到Visual Studio 2008 即时窗口

I have a seemingly innocent code snippet, which I typed into Visual Studio 2008 Immediate Window.

? results.Join(lstDocs, Function(docID) docID)
Evaluation of lambda expressions is not valid in the debugger.

正如消息所述,调试器中不可能调用lambda表达式。


为什么不允许?

As the message says, it's not possible to call a lambda expression in the debugger.
Why is it not allowed?

推荐答案

这里:为什么是LINQ没有调试器窗口?

和以前的问题: VS调试快速观察工具和lambda表达式

简而言之,复杂性

这篇关于为什么“调试器中的lambda表达式的评估无效”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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