我有一个看似无辜的代码片段,我将其输入到 Visual Studio 2008 即时窗口中。
? results.Join(lstDocs, Function(docID) docID)
Evaluation of lambda expressions is not valid in the debugger.
正如消息所说,无法在调试器中调用 lambda 表达式。
为什么不允许?
最佳答案
这里:Why is LINQ absent from debugger windows?
上一个问题:VS debugging “quick watch” tool and lambda expressions
简而言之,复杂性。
关于.net - 为什么是 "Evaluation of lambda expressions is not valid in the debugger"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1907983/