When I step through code and get to a linq statement, the stepping through process and the lines which are evaluated (and their order) are not the same as the code is written. I know this is to do with commands like yield etc.
My questions are:
Oh, and I use Visual Studio 2010 Ultimate.
According to MSDN
Any query that compiles to an expression tree produces code that is beyond the control of the debugger.
So you won't be able to fully debug the Linq query through Visual Studio Debugger.
But
there are few tool which can help for example Linq Pad
This page also describes some techniques that can be used for debugging Linq statements
This is another detailed article about debugging Linq
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With