Versions in this module Expand all Collapse all v0 v0.70.0 Jun 16, 2025 Changes in this version + const ExceptionEventType + const StdoutEventType + const StoppedEventType + const TerminatedEventType + const ThreadEventType + type Breakpoint interface + ID func() BreakpointID + Location func() location.Location + type BreakpointID int + type Debugger interface + LaunchEval func(ctx context.Context, props LaunchEvalProperties, opts ...LaunchOption) (Session, error) + func NewDebugger(options ...DebuggerOption) Debugger + type DebuggerOption func(*debugger) + func SetEventHandler(handler EventHandler) DebuggerOption + func SetLogger(logger logging.Logger) DebuggerOption + type Event struct + Message string + Thread ThreadID + Type EventType + func (d Event) String() string + type EventHandler func(Event) + type EventType string + type FrameID int + type LaunchEvalProperties struct + Input interface{} + InputPath string + Query string + type LaunchOption func(options *launchOptions) + func RegoOption(opt func(*rego.Rego)) LaunchOption + type LaunchProperties struct + BundlePaths []string + DataPaths []string + EnablePrint bool + RuleIndexing bool + SkipOps []topdown.Op + StopOnEntry bool + StopOnFail bool + StopOnResult bool + StrictBuiltinErrors bool + func (lp LaunchProperties) String() string + type LaunchTestProperties struct + Run string + type Scope interface + Location func() *location.Location + Name func() string + NamedVariables func() int + VariablesReference func() VarRef + type Session interface + AddBreakpoint func(loc location.Location) (Breakpoint, error) + Breakpoints func() ([]Breakpoint, error) + ClearBreakpoints func() error + RemoveBreakpoint func(ID BreakpointID) (Breakpoint, error) + Resume func(threadID ThreadID) error + ResumeAll func() error + Scopes func(frameID FrameID) ([]Scope, error) + StackTrace func(threadID ThreadID) (StackTrace, error) + StepIn func(threadID ThreadID) error + StepOut func(threadID ThreadID) error + StepOver func(threadID ThreadID) error + Terminate func() error + Threads func() ([]Thread, error) + Variables func(varRef VarRef) ([]Variable, error) + type StackFrame interface + Equal func(other StackFrame) bool + ID func() FrameID + Location func() *location.Location + Name func() string + String func() string + Thread func() ThreadID + type StackTrace []StackFrame + func (s StackTrace) Equal(other StackTrace) bool + type Thread interface + ID func() ThreadID + Name func() string + type ThreadID int + type VarRef int + type Variable interface + Name func() string + Type func() string + Value func() string + VariablesReference func() VarRef