show return value only in top frame

This commit is contained in:
Egor.Ushakov
2015-12-30 15:54:39 +03:00
parent 00b6a47e50
commit a4c2f94805
@@ -195,7 +195,7 @@ public class JavaStackFrame extends XStackFrame {
// add last method return value if any
final Pair<Method, Value> methodValuePair = debugProcess.getLastExecutedMethod();
if (methodValuePair != null) {
if (methodValuePair != null && myDescriptor.getUiIndex() == 0) {
ValueDescriptorImpl returnValueDescriptor = myNodeManager.getMethodReturnValueDescriptor(myDescriptor, methodValuePair.getFirst(), methodValuePair.getSecond());
children.add(JavaValue.create(returnValueDescriptor, evaluationContext, myNodeManager));
}