goBackToCallerFrame(repl: ReplContext,argument: string): Promise<void>
.back — the same move as .up, under the word a hand reaches for.
The caller ran BEFORE the frame it called, so back in execution order IS outward. gdb spells
back as an abbreviation of backtrace, which is its prefix-matching rather than its
judgement, and reads wrong at a prompt where somebody typing "back" means "take me back".
Its own function rather than goToCallerFrame with a spelling passed in, so that every command
in this file stays a plain main that takes only what a command is given. There is
deliberately no .prev: a third word for one move invites a .next to answer it, which is
already the step-over command.
import { goBackToCallerFrame } from './frames.ts'; import type { ReplContext } from './command.ts'; // Defined, not invoked: it reads a stopped page. function example(repl: ReplContext) { return goBackToCallerFrame(repl, '1'); // one frame back, which is one frame out }
repl: ReplContext