Versions in this module Expand all Collapse all v1 v1.1.0 Aug 16, 2018 Changes in this version + var ErrNoAttachPath = errors.New("must specify executable path on macOS") + type AddrLocationSpec struct + AddrExpr string + func (loc *AddrLocationSpec) Find(d *Debugger, scope *proc.EvalScope, locStr string) ([]api.Location, error) + type AmbiguousLocationError struct + CandidatesLocation []api.Location + CandidatesString []string + Location string + func (ale AmbiguousLocationError) Error() string + type Config struct + AttachPid int + Backend string + CoreFile string + Foreground bool + WorkingDir string + type Debugger struct + func New(config *Config, processArgs []string) (*Debugger, error) + func (d *Debugger) AmendBreakpoint(amend *api.Breakpoint) error + func (d *Debugger) Attach(pid int, path string) (proc.Process, error) + func (d *Debugger) Breakpoints() []*api.Breakpoint + func (d *Debugger) CancelNext() error + func (d *Debugger) Checkpoint(where string) (int, error) + func (d *Debugger) Checkpoints() ([]api.Checkpoint, error) + func (d *Debugger) ClearBreakpoint(requestedBp *api.Breakpoint) (*api.Breakpoint, error) + func (d *Debugger) ClearCheckpoint(id int) error + func (d *Debugger) Command(command *api.DebuggerCommand) (*api.DebuggerState, error) + func (d *Debugger) CreateBreakpoint(requestedBp *api.Breakpoint) (*api.Breakpoint, error) + func (d *Debugger) Detach(kill bool) error + func (d *Debugger) Disassemble(scope api.EvalScope, startPC, endPC uint64, flavour api.AssemblyFlavour) (api.AsmInstructions, error) + func (d *Debugger) EvalVariableInScope(scope api.EvalScope, symbol string, cfg proc.LoadConfig) (*api.Variable, error) + func (d *Debugger) FindBreakpoint(id int) *api.Breakpoint + func (d *Debugger) FindBreakpointByName(name string) *api.Breakpoint + func (d *Debugger) FindLocation(scope api.EvalScope, locStr string) ([]api.Location, error) + func (d *Debugger) FindThread(id int) (*api.Thread, error) + func (d *Debugger) FunctionArguments(scope api.EvalScope, cfg proc.LoadConfig) ([]api.Variable, error) + func (d *Debugger) Functions(filter string) ([]string, error) + func (d *Debugger) Goroutines() ([]*api.Goroutine, error) + func (d *Debugger) LastModified() time.Time + func (d *Debugger) Launch(processArgs []string, wd string) (proc.Process, error) + func (d *Debugger) LocalVariables(scope api.EvalScope, cfg proc.LoadConfig) ([]api.Variable, error) + func (d *Debugger) PackageVariables(threadID int, filter string, cfg proc.LoadConfig) ([]api.Variable, error) + func (d *Debugger) ProcessPid() int + func (d *Debugger) Recorded() (recorded bool, tracedir string) + func (d *Debugger) Registers(threadID int, floatingPoint bool) (api.Registers, error) + func (d *Debugger) Restart(pos string, resetArgs bool, newArgs []string) ([]api.DiscardedBreakpoint, error) + func (d *Debugger) SetVariableInScope(scope api.EvalScope, symbol, value string) error + func (d *Debugger) Sources(filter string) ([]string, error) + func (d *Debugger) Stacktrace(goroutineID, depth int, readDefers bool, cfg *proc.LoadConfig) ([]api.Stackframe, error) + func (d *Debugger) State(nowait bool) (*api.DebuggerState, error) + func (d *Debugger) Threads() ([]*api.Thread, error) + func (d *Debugger) Types(filter string) ([]string, error) + type FuncLocationSpec struct + AbsolutePackage bool + BaseName string + PackageName string + PackageOrReceiverName string + ReceiverName string + func (spec *FuncLocationSpec) Match(sym proc.Function) bool + type LineLocationSpec struct + Line int + func (loc *LineLocationSpec) Find(d *Debugger, scope *proc.EvalScope, locStr string) ([]api.Location, error) + type LocationSpec interface + Find func(d *Debugger, scope *proc.EvalScope, locStr string) ([]api.Location, error) + type NormalLocationSpec struct + Base string + FuncBase *FuncLocationSpec + LineOffset int + func (loc *NormalLocationSpec) FileMatch(path string) bool + func (loc *NormalLocationSpec) Find(d *Debugger, scope *proc.EvalScope, locStr string) ([]api.Location, error) + type OffsetLocationSpec struct + Offset int + func (loc *OffsetLocationSpec) Find(d *Debugger, scope *proc.EvalScope, locStr string) ([]api.Location, error) + type RegexLocationSpec struct + FuncRegex string + func (loc *RegexLocationSpec) Find(d *Debugger, scope *proc.EvalScope, locStr string) ([]api.Location, error)