Bug 578145: Evaluations for lambda variables are not working in nested lambda
When the focus frame is a lambda frame, the evaluation
engine will explicitly extract the visible variables from
the target frame.
Currently, it simply looks for the target frame and the
following two frames below and adds their variables to the
visible set. This doesn't work for cases like chained calls
and nested lambda.
An improved approach is to look for more frames in the
same debug file which encloses the target frame, and
append the variables of those enclosing frames to the
visible set as well. This can deal with nested lambda better.
Signed-off-by: Jinbo Wang <firstname.lastname@example.org>
Tested-by: JDT Bot <email@example.com>
Reviewed-by: Gayan Perera <firstname.lastname@example.org>
9 files changed