View result of LINQ query in watch/debugger

前端 未结 4 1205
走了就别回头了
走了就别回头了 2021-01-04 07:07

Is there a way you can view the result of a LINQ query in Visual Studio 2010? If you add the query as a watch expression it will say \"Expression cannot contain lambda expre

4条回答
  •  太阳男子
    2021-01-04 07:40

    In Visual Studio 2015 you'll be able to debug lambda expressions (it's Preview at the time of writing). You'll be able to add watches with lambda expressions etc.

    Expression Evaluator had to be rewritten, so many features are missing: remote debugging ASP.NET, declaring variables in Immediate window, inspecting dynamic variables etc. Also lambda expressions that require calls to native functions aren't currently supported. All features will be finished when VS2015 is released.

提交回复
热议问题