method ReplSession.selectFrame
ReplSession.selectFrame(index: number): string | null

Reads the rest of the session in another frame of that stack, and says where it now is.

Everything follows: what you type evaluates there, ReplSession.locals is that frame's, and ReplSession.frameSource shows the line it is stopped on. null for a frame that is not on the stack.

Parameters

index: number

Return Type

string | null

Usage

import { type ReplSession } from "lib/repl/session.ts";