Debugging Lambda Expression in Visual Studio 2015

One of my favorite features in Visual Studio 2015 is the support for debugging lambda expressions.

This is a big productivity improvement for developers who spend a lot of time writing LINQ queries.

Till Visual Studio 2013, if we tried to add a LINQ/Lambda expression to the Quick watch or Immediate window – we used to get an error stating ‘Expression cannot contain lambda expressions’.


Visual Studio 2013 – No support for debugging lambda expressions

Starting from Visual Studio 2015, we can evaluate LINQ/Lambda expression in Watch Window, Immediate Window and in DataTips as well.


Visual Studio 2015 – Support available for debugging lambda expressions


Categories: C#, LINQ, Visual Studio

1 reply

  1. This is a nice feature in VS2015.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: