diff --git a/java/debugger/impl/src/com/intellij/debugger/jdi/LocalVariablesUtil.java b/java/debugger/impl/src/com/intellij/debugger/jdi/LocalVariablesUtil.java index c32c37004d7e..a736e3c81e02 100644 --- a/java/debugger/impl/src/com/intellij/debugger/jdi/LocalVariablesUtil.java +++ b/java/debugger/impl/src/com/intellij/debugger/jdi/LocalVariablesUtil.java @@ -149,7 +149,7 @@ public class LocalVariablesUtil { public static Map fetchValues(@NotNull StackFrameProxyImpl frameProxy, DebugProcess process, - boolean computeNames) throws Exception { + boolean full) throws Exception { Map map = new LinkedHashMap<>(); // LinkedHashMap for correct order Location location = frameProxy.location(); @@ -158,7 +158,7 @@ public class LocalVariablesUtil { // gather code variables names MultiMap namesMap = - computeNames ? calcNames(new SimpleStackFrameContext(frameProxy, process), firstLocalVariableSlot) : MultiMap.empty(); + full ? calcNames(new SimpleStackFrameContext(frameProxy, process), firstLocalVariableSlot) : MultiMap.empty(); // first add arguments int slot = getFirstArgsSlot(method); @@ -169,7 +169,7 @@ public class LocalVariablesUtil { slot += getTypeSlotSize(typeNames.get(i)); } - if (!ourInitializationOk) { + if (!full || !ourInitializationOk) { return map; } diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java b/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java index 8a2d95f9aabf..d6b59ca76bec 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java @@ -114,7 +114,7 @@ public class StackFrameItem { if (e.getCause() instanceof AbsentInformationException) { vars.add(JavaStackFrame.createMessageNode(MessageDescriptor.LOCAL_VARIABLES_INFO_UNAVAILABLE.getLabel(), XDebuggerUIConstants.INFORMATION_MESSAGE_ICON)); - // trying to collect values from variable slots + // only args for frames w/o debug info for now try { for (Map.Entry entry : LocalVariablesUtil .fetchValues(frame, suspendContext.getDebugProcess(), false).entrySet()) {