diff options
author | Sarika Sinha | 2018-09-14 06:43:42 +0000 |
---|---|---|
committer | Sarika Sinha | 2018-09-14 06:43:42 +0000 |
commit | ff1f84d2a4c9ff769fb9d61305c119effba26d57 (patch) | |
tree | f5a1ace1c5596024198d6d9945d533395e5b7cb8 | |
parent | bbd5689197beae1d026b7a8367b6cd058f238cf8 (diff) | |
download | eclipse.jdt.debug-ff1f84d2a4c9ff769fb9d61305c119effba26d57.tar.gz eclipse.jdt.debug-ff1f84d2a4c9ff769fb9d61305c119effba26d57.tar.xz eclipse.jdt.debug-ff1f84d2a4c9ff769fb9d61305c119effba26d57.zip |
Bug 538899 - Debugger stopped in a lambda expression cannot see
variables in enclosing scope
Change-Id: I3c99ed967d267a9516a106172802ff56c749340e
-rw-r--r-- | org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java index 03efc86c9..b5970c5ed 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java +++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java @@ -360,7 +360,8 @@ public class JDIStackFrame extends JDIDebugElement implements IJavaStackFrame { fVariables.add(new JDIThisVariable( (JDIDebugTarget) getDebugTarget(), t)); } - if (LambdaUtils.isLambdaFrame(this)) { + } + if (LambdaUtils.isLambdaFrame(this)) { List<IJavaStackFrame> frames = fThread.computeStackFrames(); int previousIndex = frames.indexOf(this) + 1; if (previousIndex > 0 && previousIndex < frames.size()) { @@ -368,7 +369,6 @@ public class JDIStackFrame extends JDIDebugElement implements IJavaStackFrame { fVariables.add(new JDILambdaVariable((JDIDebugTarget) getDebugTarget(), previousFrame, ((JDIStackFrame) previousFrame).getUnderlyingThisObject())); } } - } addStepReturnValue(fVariables); // add locals Iterator<LocalVariable> variables = getUnderlyingVisibleVariables() |