goToFrameNumber(repl: ReplContext,argument: string): Promise<void>
.frame 1 — read a frame by its number, counting from where the page stopped.
Bare it moves nowhere, which is what gdb's does — and what stops it meaning "go to frame 0",
since Number('') is zero.
import { goToFrameNumber } from './frames.ts'; import type { ReplContext } from './command.ts'; // Defined, not invoked: it reads a stopped page. function example(repl: ReplContext) { return goToFrameNumber(repl, '1'); // frame #1, wherever the selection was before }
repl: ReplContext