This project is read-only.

DebugContext.TransformLambda doesn't walk nested lambdas


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.


dinov wrote Apr 30, 2010 at 9:27 PM

Tracked as dev10 bug #896828

wrote Apr 30, 2010 at 9:27 PM

wrote Jun 11, 2010 at 9:44 PM

wrote Feb 21, 2013 at 11:41 PM

wrote Dec 9 at 7:18 PM