Skip to content

Commit

Permalink
Show value of lval in step into targets' options
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Sep 13, 2024
1 parent f68c3f4 commit ce24ae2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/abstractdebugging/AbstractDebuggingServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,11 @@ public CompletableFuture<StepInTargetsResponse> stepInTargets(StepInTargetsArgum
for (int i = 0; i < cfgEdges.size(); i++) {
var edge = cfgEdges.get(i);
var node = resultsService.lookupNode(edge.nodeId());
var lval = edge.lval();
lval = lval == null ? "" : " " + domainValueToString(resultsService.evaluateExpression(edge.nodeId(), edge.lval()));
forwardTargets.add(target(
STEP_OVER_OFFSET + i,
"Step: " + edge.statementDisplayString(),
"Step: " + edge.statementDisplayString() + lval,
node.location()
));
}
Expand Down

0 comments on commit ce24ae2

Please sign in to comment.