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’.

LambdaExpressionNoSupportVS2013
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.

LambdaExpressionSupportVS2015
Visual Studio 2015 – Support available for debugging lambda expressions

 

One thought on “Debugging Lambda Expression in Visual Studio 2015

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s