#VS2015 – Debug #lambda expressions


In yesterday’s post I wrote about the debugging Features for LINQ available in Visual Studio 2013 and 2015. In Visual Studio 2015 there is also a new feature for debug Lambda expressions which is very useful. This feature was requested by the community with almost 10K votes (link) and is finally included in Visual Studio 2015 RTM

Important: If you plan to listen to your users, this is how it must be done. Thanks Product Team !!!

So, if we pick up yesterday sample; after the creation of a name string array, we can pause the debugger and analize the content of the array in a declarative way in the Watch panel. We also have access to Intellisense and other online features

And, the really cool stuff is to write and run our own Lambda expressions in the Watch Window. Let’s find names with Length bigger than 5 chars.

Cool !!! now we can have some more fun in our debugging sessions 😉


– MSDN LINQ, https://msdn.microsoft.com/es-es/library/bb397926.aspx

– MSDN Lambda Expressions, https://msdn.microsoft.com/en-us/library/bb397687.aspx

– User Voice, Debugging Lambda Expressions, http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2049821-debug-lambda-expressions-planned

Saludos @ Airplace

/El Bruno


Leave a comment

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 )

Connecting to %s

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

%d bloggers like this: