It could be fixed with a version doing stepOver (necessary to stop on exception signals, while skipping halts) and doing stepInto only when we are on a message node that has a block node that is defined in the same lexical context as the context in which we want to step to return.
In
SindarinDebugger
, thestepToReturn
command doesn't step to returns in blocks, as its implementation usesstepOver
:Thus, in
SindarinDebuggerTest
, thetestStepToNonLocalreturn
is red:It could be fixed with a version doing
stepOver
(necessary to stop on exception signals, while skipping halts) and doingstepInto
only when we are on a message node that has a block node that is defined in the same lexical context as the context in which we want to step to return.