Documentation
¶
Index ¶
- Variables
- type BreakpointManager
- type CallStack
- type Debugger
- func (d *Debugger) Continue() error
- func (d *Debugger) IsDebuggable(nodeType ast.NodeType) bool
- func (d *Debugger) Pause() error
- func (d *Debugger) PopFrame()
- func (d *Debugger) PushFrame(frame StackFrame)
- func (d *Debugger) ShouldStop(filename string, line int) bool
- func (d *Debugger) StepInto() error
- func (d *Debugger) StepOut() error
- func (d *Debugger) StepOver() error
- func (d *Debugger) TakeSnapshot()
- func (d *Debugger) WaitIfPaused(nodeType ast.NodeType)
- type Snapshot
- type Snapshots
- type StackFrame
- type State
- type StepType
Constants ¶
This section is empty.
Variables ¶
View Source
var Debuggables = map[ast.NodeType]struct{}{ ast.VarDeclarationNode: {}, ast.VarAssignmentExprNode: {}, ast.IfStatementNode: {}, ast.WhileLoopNode: {}, ast.ReturnStmtNode: {}, ast.ContinueStmtNode: {}, ast.BreakStmtNode: {}, ast.TryCatchStmtNode: {}, ast.CallExprNode: {}, ast.FnDeclarationNode: {}, ast.ClassNode: {}, ast.ClassMethodNode: {}, ast.ClassPropertyNode: {}, ast.ProgramNode: {}, }
Define what can be debugged
Functions ¶
This section is empty.
Types ¶
type BreakpointManager ¶
func NewBreakpointManager ¶
func NewBreakpointManager() *BreakpointManager
func (*BreakpointManager) Clear ¶
func (bm *BreakpointManager) Clear()
func (*BreakpointManager) Remove ¶
func (bm *BreakpointManager) Remove(file string, line int)
func (*BreakpointManager) Set ¶
func (bm *BreakpointManager) Set(file string, line int)
type CallStack ¶
type CallStack []StackFrame
func DeepCopyCallStack ¶
DeepCopyCallStack creates a deep copy of the call stack
type Debugger ¶
type Debugger struct {
BreakpointManager BreakpointManager
Environment *environment.Environment
State State
CurrentFile string
CurrentLine int
CallStack CallStack
Snapshots Snapshots
// contains filtered or unexported fields
}
func NewDebugger ¶
func NewDebugger(env *environment.Environment) *Debugger
func (*Debugger) PushFrame ¶
func (d *Debugger) PushFrame(frame StackFrame)
func (*Debugger) TakeSnapshot ¶
func (d *Debugger) TakeSnapshot()
func (*Debugger) WaitIfPaused ¶
type Snapshot ¶
type Snapshot struct {
Stack CallStack
Env *environment.Environment
}
type StackFrame ¶
Click to show internal directories.
Click to hide internal directories.