Search code examples
c#debugginglambdavisual-studio-2013step-into

Is stepping into lambda expressions broken in VS2013?


In VS2010 and VS2012 I can step into lambda expression when current statement is displayed for the in part of the foreach loop:

StepInto lambda expression

I just had to press f11:

StepInto lambda expression VS2010

In VS2013 this is broken. When I hit f11, current statement goes directly to loop variable:

StepInto lambda expression VS2013

I can still get into lambda expression by putting breakpoint for i % 2 == 0 expression, but simple f11 is so much easier... Is this a bug in VS2013 or do I miss some setting or something?


Solution

  • Make sure you have the "Just My Code" debugging option turned on.

    Go to Options -> Debugging -> General and ensure that "Enable just my code" is unselected.