Skip to content

Commit 72d056c

Browse files
authored
fix the invalid stack exception during evaluation (microsoft#163)
1 parent c748730 commit 72d056c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

check_style.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@
104104
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
105105
</module>
106106
<module name="NeedBraces"/>
107-
<module name="LeftCurly">
108-
<property name="maxLineLength" value="120"/>
109-
</module>
110107
<module name="RightCurly">
111108
<property name="id" value="RightCurlySame"/>
112109
<property name="tokens"

com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/eval/JdtEvaluationProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public CompletableFuture<Value> evaluateForBreakpoint(IBreakpoint breakpoint, Th
9595
try {
9696
ensureDebugTarget(thread.virtualMachine(), thread, 0);
9797
JDIThread jdiThread = getMockJDIThread(thread);
98-
JDIStackFrame stackframe = (JDIStackFrame) jdiThread.getTopStackFrame();
98+
JDIStackFrame stackframe = new JDIStackFrame(jdiThread, thread.frame(0), 0);
9999

100100
ASTEvaluationEngine engine = new ASTEvaluationEngine(project, debugTarget);
101101
ICompiledExpression ie = (ICompiledExpression) breakpointExpressionMap

0 commit comments

Comments
 (0)