There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
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.