Versions in this module Expand all Collapse all v0 v0.0.1 Oct 27, 2024 Changes in this version + const ExecutingExistingFile + const ExecutingGeneratedFile + const ExecutingGeneratedTest + const ExecutingOther + const NoDebugWarning + var ErrCanNotRestart = errors.New("can not restart this target") + var ErrCoreDumpInProgress = errors.New("core dump in progress") + var ErrCoreDumpNotSupported = errors.New("core dumping not supported") + var ErrNotImplementedWithMultitarget = errors.New("not implemented for multiple targets") + var ErrNotRecording = errors.New("debugger is not recording") + type Config struct + AttachPid int + AttachWaitFor string + AttachWaitForDuration float64 + AttachWaitForInterval float64 + Backend string + BuildFlags string + CheckGoVersion bool + CoreFile string + DebugInfoDirectories []string + DisableASLR bool + ExecuteKind ExecuteKind + Foreground bool + Packages []string + RrOnProcessPid int + Stderr proc.OutputRedirect + Stdin string + Stdout proc.OutputRedirect + TTY string + WorkingDir string + type Debugger struct + func New(config *Config, processArgs []string) (*Debugger, error) + func (d *Debugger) AmendBreakpoint(amend *api.Breakpoint) error + func (d *Debugger) Ancestors(goroutineID int64, numAncestors, depth int) ([]api.Ancestor, error) + func (d *Debugger) AsmInstructionText(inst *proc.AsmInstruction, flavour proc.AssemblyFlavour) string + func (d *Debugger) Attach(pid int, path string, waitFor *proc.WaitFor) (*proc.TargetGroup, error) + func (d *Debugger) AttachPid() int + func (d *Debugger) Breakpoints(all bool) []*api.Breakpoint + func (d *Debugger) BuildID() string + func (d *Debugger) CancelNext() error + func (d *Debugger) ChanGoroutines(goid int64, frame, deferredCall int, expr string, start, count int) ([]*proc.G, error) + func (d *Debugger) Checkpoint(where string) (int, error) + func (d *Debugger) Checkpoints() ([]proc.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, resumeNotify chan struct{}, ...) (state *api.DebuggerState, err error) + func (d *Debugger) ConvertStacktrace(rawlocs []proc.Stackframe, cfg *proc.LoadConfig) ([]api.Stackframe, error) + func (d *Debugger) ConvertThreadBreakpoint(thread proc.Thread) *api.Breakpoint + func (d *Debugger) CreateBreakpoint(requestedBp *api.Breakpoint, locExpr string, substitutePathRules [][2]string, ...) (*api.Breakpoint, error) + func (d *Debugger) CreateEBPFTracepoint(fnName string) error + func (d *Debugger) CreateWatchpoint(goid int64, frame, deferredCall int, expr string, wtype api.WatchType) (*api.Breakpoint, error) + func (d *Debugger) CurrentPackage() (string, error) + func (d *Debugger) DebugInfoDirectories() []string + func (d *Debugger) Detach(kill bool) error + func (d *Debugger) Disassemble(goroutineID int64, addr1, addr2 uint64) ([]proc.AsmInstruction, error) + func (d *Debugger) DumpCancel() error + func (d *Debugger) DumpStart(dest string) error + func (d *Debugger) DumpWait(wait time.Duration) *proc.DumpState + func (d *Debugger) DwarfRegisterToString(i int, reg *op.DwarfRegister) (string, bool, string) + func (d *Debugger) EvalVariableInScope(goid int64, frame, deferredCall int, expr string, cfg proc.LoadConfig) (*proc.Variable, error) + func (d *Debugger) ExamineMemory(address uint64, length int) ([]byte, error) + func (d *Debugger) FilterGoroutines(gs []*proc.G, filters []api.ListGoroutinesFilter) []*proc.G + func (d *Debugger) FindBreakpoint(id int) *api.Breakpoint + func (d *Debugger) FindBreakpointByName(name string) *api.Breakpoint + func (d *Debugger) FindGoroutine(id int64) (*proc.G, error) + func (d *Debugger) FindLocation(goid int64, frame, deferredCall int, locStr string, ...) ([]api.Location, string, error) + func (d *Debugger) FindLocationSpec(goid int64, frame, deferredCall int, locStr string, ...) ([]api.Location, error) + func (d *Debugger) FindThread(id int) (proc.Thread, error) + func (d *Debugger) FindThreadReturnValues(id int, cfg proc.LoadConfig) ([]*proc.Variable, error) + func (d *Debugger) FollowExec(enabled bool, regex string) error + func (d *Debugger) FollowExecEnabled() bool + func (d *Debugger) Function(goid int64, frame, deferredCall int) (*proc.Function, error) + func (d *Debugger) FunctionArguments(goid int64, frame, deferredCall int, cfg proc.LoadConfig) ([]*proc.Variable, error) + func (d *Debugger) FunctionReturnLocations(fnName string) ([]uint64, error) + func (d *Debugger) Functions(filter string, followCalls int) ([]string, error) + func (d *Debugger) GetBufferedTracepoints() []api.TracepointResult + func (d *Debugger) GetVersion(out *api.GetVersionOut) error + func (d *Debugger) Goroutines(start, count int) ([]*proc.G, int, error) + func (d *Debugger) GroupGoroutines(gs []*proc.G, group *api.GoroutineGroupingOptions) ([]*proc.G, []api.GoroutineGroup, bool) + func (d *Debugger) IsRunning() bool + func (d *Debugger) LastModified() time.Time + func (d *Debugger) Launch(processArgs []string, wd string) (*proc.TargetGroup, error) + func (d *Debugger) ListDynamicLibraries() []*proc.Image + func (d *Debugger) ListPackagesBuildInfo(includeFiles bool) []*proc.PackageBuildInfo + func (d *Debugger) LoadResliced(v *proc.Variable, start int, cfg proc.LoadConfig) (*proc.Variable, error) + func (d *Debugger) LocalVariables(goid int64, frame, deferredCall int, cfg proc.LoadConfig) ([]*proc.Variable, error) + func (d *Debugger) LockTarget() + func (d *Debugger) PackageVariables(filter string, cfg proc.LoadConfig) ([]*proc.Variable, error) + func (d *Debugger) ProcessPid() int + func (d *Debugger) Recorded() (recorded bool, tracedir string) + func (d *Debugger) Restart(rerecord bool, pos string, resetArgs bool, newArgs []string, ...) ([]api.DiscardedBreakpoint, error) + func (d *Debugger) ScopeRegisters(goid int64, frame, deferredCall int) (*op.DwarfRegisters, error) + func (d *Debugger) SetDebugInfoDirectories(v []string) + func (d *Debugger) SetVariableInScope(goid int64, frame, deferredCall int, symbol, value string) error + func (d *Debugger) Sources(filter string) ([]string, error) + func (d *Debugger) Stacktrace(goroutineID int64, depth int, opts api.StacktraceOptions) ([]proc.Stackframe, error) + func (d *Debugger) State(nowait bool) (*api.DebuggerState, error) + func (d *Debugger) StopReason() proc.StopReason + func (d *Debugger) StopRecording() error + func (d *Debugger) Target() *proc.Target + func (d *Debugger) TargetGoVersion() string + func (d *Debugger) TargetGroup() *proc.TargetGroup + func (d *Debugger) ThreadRegisters(threadID int) (*op.DwarfRegisters, error) + func (d *Debugger) Threads() ([]proc.Thread, error) + func (d *Debugger) Types(filter string) ([]string, error) + func (d *Debugger) UnlockTarget() + type ExecuteKind int v0.0.1-alpha Jan 10, 2025