Skip to main content

Module debugger

Module debugger 

Source
Expand description

Script debugger — breakpoints, stepping, locals inspection, coverage tracking.

§Architecture

DebugSession  ←→  ScriptDebugger  ←→  Vm
     ↕                  ↕
DebugCommand       BreakpointKind
                       ↕
                 CoverageTracker

Structs§

Breakpoint
A single breakpoint with metadata.
CallStackTrace
Human-readable call stack trace.
CoverageTracker
Tracks which instruction indices were executed per chunk name.
DebugSession
A REPL-style debug session. Executes DebugCommands against a VM and a ScriptDebugger.
DebuggerState
Mutable debugger state — can be inspected between instructions.
FrameInfo
A frame entry in a call stack trace.
LocalInspector
Inspects local variables in a VM frame.
ScriptDebugger
Wraps VM execution with pre-instruction hooks.
WatchExpression
Evaluates a one-liner expression in a fresh VM loaded with provided globals.

Enums§

BreakpointKind
Specifies when a breakpoint fires.
DebugCommand
Commands accepted by the debug session REPL.
StepMode
Controls single-step behaviour.