Documentation ¶
Index ¶
- type AddrLocationSpec
- type AmbiguousLocationError
- type Config
- type Debugger
- func (d *Debugger) Breakpoints() []*api.Breakpoint
- func (d *Debugger) ClearBreakpoint(requestedBp *api.Breakpoint) (*api.Breakpoint, 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) EvalVariableInScope(scope api.EvalScope, symbol string) (*api.Variable, error)
- func (d *Debugger) FindBreakpoint(id int) *api.Breakpoint
- func (d *Debugger) FindLocation(scope api.EvalScope, locStr string) ([]api.Location, error)
- func (d *Debugger) FindThread(id int) *api.Thread
- func (d *Debugger) FunctionArguments(scope api.EvalScope) ([]api.Variable, error)
- func (d *Debugger) Functions(filter string) ([]string, error)
- func (d *Debugger) Goroutines() ([]*api.Goroutine, error)
- func (d *Debugger) LocalVariables(scope api.EvalScope) ([]api.Variable, error)
- func (d *Debugger) PackageVariables(threadID int, filter string) ([]api.Variable, error)
- func (d *Debugger) ProcessPid() int
- func (d *Debugger) Registers(threadID int) (string, error)
- func (d *Debugger) Restart() error
- func (d *Debugger) Sources(filter string) ([]string, error)
- func (d *Debugger) Stacktrace(goroutineId, depth int, full bool) ([]api.Stackframe, error)
- func (d *Debugger) State() (*api.DebuggerState, error)
- func (d *Debugger) Threads() []*api.Thread
- type FuncLocationSpec
- type LineLocationSpec
- type LocationSpec
- type NormalLocationSpec
- type OffsetLocationSpec
- type RegexLocationSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddrLocationSpec ¶
type AddrLocationSpec struct {
Addr uint64
}
type AmbiguousLocationError ¶
type AmbiguousLocationError struct { Location string CandidatesString []string CandidatesLocation []api.Location }
func (AmbiguousLocationError) Error ¶
func (ale AmbiguousLocationError) Error() string
type Config ¶
type Config struct { // ProcessArgs are the arguments to launch a new process. ProcessArgs []string // AttachPid is the PID of an existing process to which the debugger should // attach. AttachPid int }
Config provides the configuration to start a Debugger.
Only one of ProcessArgs or AttachPid should be specified. If ProcessArgs is provided, a new process will be launched. Otherwise, the debugger will try to attach to an existing process with AttachPid.
type Debugger ¶
type Debugger struct {
// contains filtered or unexported fields
}
Debugger service.
Debugger provides a higher level of abstraction over proc.Process. It handles converting from internal types to the types expected by clients. It also handles functionality needed by clients, but not needed in lower lever packages such as proc.
func (*Debugger) Breakpoints ¶
func (d *Debugger) Breakpoints() []*api.Breakpoint
func (*Debugger) ClearBreakpoint ¶
func (d *Debugger) ClearBreakpoint(requestedBp *api.Breakpoint) (*api.Breakpoint, error)
func (*Debugger) Command ¶
func (d *Debugger) Command(command *api.DebuggerCommand) (*api.DebuggerState, error)
Command handles commands which control the debugger lifecycle
func (*Debugger) CreateBreakpoint ¶
func (d *Debugger) CreateBreakpoint(requestedBp *api.Breakpoint) (*api.Breakpoint, error)
func (*Debugger) EvalVariableInScope ¶
func (*Debugger) FindBreakpoint ¶
func (d *Debugger) FindBreakpoint(id int) *api.Breakpoint
func (*Debugger) FindLocation ¶
func (*Debugger) FunctionArguments ¶
func (*Debugger) LocalVariables ¶
func (*Debugger) PackageVariables ¶
func (*Debugger) ProcessPid ¶
func (*Debugger) Stacktrace ¶
type FuncLocationSpec ¶
type LineLocationSpec ¶
type LineLocationSpec struct {
Line int
}
type LocationSpec ¶
type NormalLocationSpec ¶
type NormalLocationSpec struct { Base string FuncBase *FuncLocationSpec LineOffset int }
func (*NormalLocationSpec) FileMatch ¶
func (loc *NormalLocationSpec) FileMatch(path string) bool
type OffsetLocationSpec ¶
type OffsetLocationSpec struct {
Offset int
}
Click to show internal directories.
Click to hide internal directories.