3
Vote

DebugContext.TransformLambda doesn't walk nested lambdas

description

<Thanks>dotneteer</Thanks>
 
I looked into the source code of Microsoft.Scripting.Debugging and have a better understanding of the problem. First of all, both LambdaWalker and DebugableLambdaBuilder does not handle Lambda expression. The comments said that they expect the lambda to have been transformed already. So we do not to transform each nexted lambda separately. Secondly a more severe problem, if the nested lambda reference parameter expressions in the parent lambda, the reference become invalid after the parent is transformed. Thirdly, if we transform the child that references parent parameters, the child cannot see the parent parameter after transform.

comments

dinov wrote Apr 30, 2010 at 9:27 PM

Tracked as dev10 bug #896828