Versions in this module Expand all Collapse all v1 v1.20.0 Aug 26, 2026 Changes in this version + func CanonicalDebugCommand(token string) (string, bool) + type BreakAction int + const BreakAbandon + const BreakContinue + const BreakFinish + const BreakNext + const BreakStep + type BreakpointInfo struct + Column int + Enabled bool + File string + HitCount int + ID int + Line int + type CommandMeta struct + Aliases []string + Detail string + Name string + Summary string + func Commands() []CommandMeta + type DebugCommandInfo struct + Aliases []string + Detail string + Handler func(args []string, out io.Writer) + Name string + Summary string + type DebugContext struct + func NewDebugContext() *DebugContext + func (p *DebugContext) DebugCommands() []DebugCommandInfo + func (p *DebugContext) Debugger() *Debugger + func (p *DebugContext) HandleDebugCommand(line string, out io.Writer) bool + type Debugger struct + func NewDebugger() *Debugger + func (p *Debugger) Attach(mc *machine.MachineContext, closureEnv *environment.EnvironmentFrame) + func (p *Debugger) Breakpoints() []BreakpointInfo + func (p *Debugger) Continue() + func (p *Debugger) CurrentState() values.DebugState + func (p *Debugger) DisableBreakpoint(id int) bool + func (p *Debugger) EnableBreakpoint(id int) bool + func (p *Debugger) IsStepping() bool + func (p *Debugger) OnBreak(fn func(state values.DebugState, bp *BreakpointInfo)) + func (p *Debugger) OnBreakSuspend(fn func(state values.DebugState, bp *BreakpointInfo) BreakAction) + func (p *Debugger) RemoveBreakpoint(id int) bool + func (p *Debugger) SetBreakpoint(file string, line, col int) int + func (p *Debugger) StepInto() + func (p *Debugger) StepOut() + func (p *Debugger) StepOver()