Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is "Evaluation of lambda expressions is not valid in the debugger"?

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.

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

like image 895
dance2die Avatar asked Dec 15 '09 14:12

dance2die


1 Answers

Here: Why is LINQ absent from debugger windows?

And this previous question: VS debugging “quick watch” tool and lambda expressions

In short, complexity.

like image 178
jason Avatar answered Sep 21 '22 06:09

jason