f
excerpt(): string
source: string,
line: number,
palette: Theme,
limits?: Limits
The source around a breakpoint, numbered, with a mark on the line the page stopped on.
f
limits(): Limits
How much to show, with anything the developer has said on top.
I
Limits
How much source to show around a breakpoint.
-
after: number
Lines after it, at most. It stops sooner at a
return. -
before: number
Lines before it, at most. It stops sooner at the start of the enclosing block.
v
LINES: Limits
The default window: enough of the way up to see what function you are in, and enough of the way down to see what it is about to answer.
Usage
import * as mod from "lib/repl/excerpt.ts";