Skip to content

Commit

Permalink
In abstract view, step over methods
Browse files Browse the repository at this point in the history
  • Loading branch information
btj committed Nov 7, 2024
1 parent e46d0de commit 492c8b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jlearner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2294,6 +2294,10 @@ function setCodeViewMode(abstract) {
}
}

function isInAbstractViewMode() {
return document.getElementById('abstractViewCheckbox').checked;
}

function setViewMode(abstract) {
handleError(async () => {
setCodeViewMode(abstract);
Expand Down Expand Up @@ -2638,7 +2642,7 @@ let resumeFunc = null;

function checkBreakpoint(node) {
return new Promise((resolve, reject) => {
if (currentBreakCondition(node)) {
if ((!isInAbstractViewMode() || callStack.length <= 1) && currentBreakCondition(node)) {
currentNode = node;
currentBreakCondition = null;
currentInstructionMark = markLoc(node.instrLoc, "current-instruction");
Expand Down

0 comments on commit 492c8b4

Please sign in to comment.