Documentation
¶
Index ¶
- Constants
- func MakeGuessSusbtitutePathIn() (*api.GuessSubstitutePathIn, error)
- type AmendBreakpointIn
- type AmendBreakpointOut
- type AncestorsIn
- type AncestorsOut
- type AttachedToExistingProcessIn
- type AttachedToExistingProcessOut
- type BuildIDIn
- type BuildIDOut
- type CancelDownloadsIn
- type CancelDownloadsOut
- type CancelNextIn
- type CancelNextOut
- type CheckpointIn
- type CheckpointOut
- type ClearBreakpointIn
- type ClearBreakpointOut
- type ClearCheckpointIn
- type ClearCheckpointOut
- type CommandOut
- type CreateBreakpointIn
- type CreateBreakpointOut
- type CreateEBPFTracepointIn
- type CreateEBPFTracepointOut
- type CreateWatchpointIn
- type CreateWatchpointOut
- type DebugInfoDirectoriesIn
- type DebugInfoDirectoriesOut
- type DetachIn
- type DetachOut
- type DisassembleIn
- type DisassembleOut
- type DownloadLibraryDebugInfoIn
- type DownloadLibraryDebugInfoOut
- type DumpCancelIn
- type DumpCancelOut
- type DumpStartIn
- type DumpStartOut
- type DumpWaitIn
- type DumpWaitOut
- type EvalIn
- type EvalOut
- type ExamineMemoryIn
- type ExaminedMemoryOut
- type FindLocationIn
- type FindLocationOut
- type FollowExecEnabledIn
- type FollowExecEnabledOut
- type FollowExecIn
- type FollowExecOut
- type FunctionReturnLocationsIn
- type FunctionReturnLocationsOut
- type GetBreakpointIn
- type GetBreakpointOut
- type GetBufferedTracepointsIn
- type GetBufferedTracepointsOut
- type GetEventsIn
- type GetEventsOut
- type GetThreadIn
- type GetThreadOut
- type GuessSubstitutePathIn
- type GuessSubstitutePathOut
- type IsMulticlientIn
- type IsMulticlientOut
- type LastModifiedIn
- type LastModifiedOut
- type ListBreakpointsIn
- type ListBreakpointsOut
- type ListCheckpointsIn
- type ListCheckpointsOut
- type ListDynamicLibrariesIn
- type ListDynamicLibrariesOut
- type ListFunctionArgsIn
- type ListFunctionArgsOut
- type ListFunctionsIn
- type ListFunctionsOut
- type ListGoroutinesIn
- type ListGoroutinesOut
- type ListLocalVarsIn
- type ListLocalVarsOut
- type ListPackageVarsIn
- type ListPackageVarsOut
- type ListPackagesBuildInfoIn
- type ListPackagesBuildInfoOut
- type ListRegistersIn
- type ListRegistersOut
- type ListSourcesIn
- type ListSourcesOut
- type ListTargetsIn
- type ListTargetsOut
- type ListThreadsIn
- type ListThreadsOut
- type ListTypesIn
- type ListTypesOut
- type LogClient
- type ProcessExitedError
- type ProcessPidIn
- type ProcessPidOut
- type RPCClient
- func (c *RPCClient) AmendBreakpoint(bp *api.Breakpoint) error
- func (c *RPCClient) Ancestors(goroutineID int64, numAncestors int, depth int) ([]api.Ancestor, error)
- func (c *RPCClient) AttachedToExistingProcess() bool
- func (c *RPCClient) BuildID() string
- func (c *RPCClient) Call(goroutineID int64, expr string, unsafe bool) (*api.DebuggerState, error)
- func (c *RPCClient) CallAPI(method string, args, reply any) error
- func (c *RPCClient) CancelDownloads() error
- func (c *RPCClient) CancelNext() error
- func (c *RPCClient) Checkpoint(where string) (checkpointID int, err error)
- func (c *RPCClient) ClearBreakpoint(id int) (*api.Breakpoint, error)
- func (c *RPCClient) ClearBreakpointByName(name string) (*api.Breakpoint, error)
- func (c *RPCClient) ClearCheckpoint(id int) error
- func (c *RPCClient) Continue() <-chan *api.DebuggerState
- func (c *RPCClient) CoreDumpCancel() error
- func (c *RPCClient) CoreDumpStart(dest string) (api.DumpState, error)
- func (c *RPCClient) CoreDumpWait(msec int) api.DumpState
- func (c *RPCClient) CreateBreakpoint(breakPoint *api.Breakpoint) (*api.Breakpoint, error)
- func (c *RPCClient) CreateBreakpointWithExpr(breakPoint *api.Breakpoint, locExpr string, substitutePathRules [][2]string, ...) (*api.Breakpoint, error)
- func (c *RPCClient) CreateEBPFTracepoint(fnName string) error
- func (c *RPCClient) CreateWatchpoint(scope api.EvalScope, expr string, wtype api.WatchType) (*api.Breakpoint, error)
- func (c *RPCClient) Detach(kill bool) error
- func (c *RPCClient) DirectionCongruentContinue() <-chan *api.DebuggerState
- func (c *RPCClient) DisassemblePC(scope api.EvalScope, pc uint64, flavour api.AssemblyFlavour) (api.AsmInstructions, error)
- func (c *RPCClient) DisassembleRange(scope api.EvalScope, startPC, endPC uint64, flavour api.AssemblyFlavour) (api.AsmInstructions, error)
- func (c *RPCClient) Disconnect(cont bool) error
- func (c *RPCClient) DownloadLibraryDebugInfo(n int) error
- func (c *RPCClient) EvalVariable(scope api.EvalScope, expr string, cfg api.LoadConfig) (*api.Variable, error)
- func (c *RPCClient) ExamineMemory(address uint64, count int) ([]byte, bool, error)
- func (c *RPCClient) FindLocation(scope api.EvalScope, loc string, findInstructions bool, ...) ([]api.Location, string, error)
- func (c *RPCClient) FollowExec(v bool, regex string) error
- func (c *RPCClient) FollowExecEnabled() bool
- func (c *RPCClient) FunctionReturnLocations(fnName string) ([]uint64, error)
- func (c *RPCClient) GetBreakpoint(id int) (*api.Breakpoint, error)
- func (c *RPCClient) GetBreakpointByName(name string) (*api.Breakpoint, error)
- func (c *RPCClient) GetBufferedTracepoints() ([]api.TracepointResult, error)
- func (c *RPCClient) GetDebugInfoDirectories() ([]string, error)
- func (c *RPCClient) GetState() (*api.DebuggerState, error)
- func (c *RPCClient) GetStateNonBlocking() (*api.DebuggerState, error)
- func (c *RPCClient) GetThread(id int) (*api.Thread, error)
- func (c *RPCClient) GuessSubstitutePath() ([][2]string, error)
- func (c *RPCClient) Halt() (*api.DebuggerState, error)
- func (c *RPCClient) IsMulticlient() bool
- func (c *RPCClient) LastModified() time.Time
- func (c *RPCClient) ListBreakpoints(all bool) ([]*api.Breakpoint, error)
- func (c *RPCClient) ListCheckpoints() ([]api.Checkpoint, error)
- func (c *RPCClient) ListDynamicLibraries() ([]api.Image, error)
- func (c *RPCClient) ListFunctionArgs(scope api.EvalScope, cfg api.LoadConfig) ([]api.Variable, error)
- func (c *RPCClient) ListFunctions(filter string, TraceFollow int) ([]string, error)
- func (c *RPCClient) ListGoroutines(start, count int) ([]*api.Goroutine, int, error)
- func (c *RPCClient) ListGoroutinesWithFilter(start, count int, filters []api.ListGoroutinesFilter, ...) ([]*api.Goroutine, []api.GoroutineGroup, int, bool, error)
- func (c *RPCClient) ListLocalVariables(scope api.EvalScope, cfg api.LoadConfig) ([]api.Variable, error)
- func (c *RPCClient) ListPackageVariables(filter string, cfg api.LoadConfig) ([]api.Variable, error)
- func (c *RPCClient) ListPackagesBuildInfo(filter string, includeFiles bool) ([]api.PackageBuildInfo, error)
- func (c *RPCClient) ListScopeRegisters(scope api.EvalScope, includeFp bool) (api.Registers, error)
- func (c *RPCClient) ListSources(filter string) ([]string, error)
- func (c *RPCClient) ListTargets() ([]api.Target, error)
- func (c *RPCClient) ListThreadRegisters(threadID int, includeFp bool) (api.Registers, error)
- func (c *RPCClient) ListThreads() ([]*api.Thread, error)
- func (c *RPCClient) ListTypes(filter string) ([]string, error)
- func (c *RPCClient) Next() (*api.DebuggerState, error)
- func (c *RPCClient) ProcessPid() int
- func (c *RPCClient) Recorded() bool
- func (c *RPCClient) Restart(rebuild bool) ([]api.DiscardedBreakpoint, error)
- func (c *RPCClient) RestartFrom(rerecord bool, pos string, resetArgs bool, newArgs []string, ...) ([]api.DiscardedBreakpoint, error)
- func (c *RPCClient) ReverseNext() (*api.DebuggerState, error)
- func (c *RPCClient) ReverseStep() (*api.DebuggerState, error)
- func (c *RPCClient) ReverseStepInstruction(skipCalls bool) (*api.DebuggerState, error)
- func (c *RPCClient) ReverseStepOut() (*api.DebuggerState, error)
- func (c *RPCClient) Rewind() <-chan *api.DebuggerState
- func (c *RPCClient) Running() bool
- func (c *RPCClient) SetDebugInfoDirectories(v []string) error
- func (c *RPCClient) SetEventsFn(eventsFn func(*api.Event))
- func (c *RPCClient) SetReturnValuesLoadConfig(cfg *api.LoadConfig)
- func (c *RPCClient) SetVariable(scope api.EvalScope, symbol, value string) error
- func (c *RPCClient) Stacktrace(goroutineId int64, depth int, opts api.StacktraceOptions, cfg *api.LoadConfig) ([]api.Stackframe, error)
- func (c *RPCClient) Step() (*api.DebuggerState, error)
- func (c *RPCClient) StepInstruction(skipCalls bool) (*api.DebuggerState, error)
- func (c *RPCClient) StepOut() (*api.DebuggerState, error)
- func (c *RPCClient) StopRecording() error
- func (c *RPCClient) SwitchGoroutine(goroutineID int64) (*api.DebuggerState, error)
- func (c *RPCClient) SwitchThread(threadID int) (*api.DebuggerState, error)
- func (c *RPCClient) ToggleBreakpoint(id int) (*api.Breakpoint, error)
- func (c *RPCClient) ToggleBreakpointByName(name string) (*api.Breakpoint, error)
- func (c *RPCClient) TraceDirectory() (string, error)
- func (c *RPCClient) WaitForRecordingDone()
- type RecordedIn
- type RecordedOut
- type RestartIn
- type RestartOut
- type SetIn
- type SetOut
- type StacktraceIn
- type StacktraceOut
- type StateIn
- type StateOut
- type StopRecordingIn
- type StopRecordingOut
- type ToggleBreakpointIn
- type ToggleBreakpointOut
Constants ¶
const ExamineMemoryLengthLimit = 1 << 16
Variables ¶
This section is empty.
Functions ¶
func MakeGuessSusbtitutePathIn ¶
func MakeGuessSusbtitutePathIn() (*api.GuessSubstitutePathIn, error)
MakeGuessSusbtitutePathIn returns a mapping from modules to client directories using "go list".
Types ¶
type AmendBreakpointIn ¶
type AmendBreakpointIn struct {
Breakpoint api.Breakpoint
}
type AmendBreakpointOut ¶
type AmendBreakpointOut struct {
}
type AncestorsIn ¶
type AncestorsOut ¶
type AttachedToExistingProcessIn ¶
type AttachedToExistingProcessIn struct {
}
type AttachedToExistingProcessOut ¶
type AttachedToExistingProcessOut struct {
Answer bool
}
type BuildIDOut ¶
type BuildIDOut struct {
BuildID string
}
type CancelDownloadsIn ¶
type CancelDownloadsIn struct {
}
type CancelDownloadsOut ¶
type CancelDownloadsOut struct {
}
type CancelNextIn ¶
type CancelNextIn struct {
}
type CancelNextOut ¶
type CancelNextOut struct {
}
type CheckpointIn ¶
type CheckpointIn struct {
Where string
}
type CheckpointOut ¶
type CheckpointOut struct {
ID int
}
type ClearBreakpointIn ¶
type ClearBreakpointOut ¶
type ClearBreakpointOut struct {
Breakpoint *api.Breakpoint
}
type ClearCheckpointIn ¶
type ClearCheckpointIn struct {
ID int
}
type ClearCheckpointOut ¶
type ClearCheckpointOut struct {
}
type CommandOut ¶
type CommandOut struct {
State api.DebuggerState
}
type CreateBreakpointIn ¶
type CreateBreakpointIn struct {
Breakpoint api.Breakpoint
LocExpr string
SubstitutePathRules [][2]string
Suspended bool
}
type CreateBreakpointOut ¶
type CreateBreakpointOut struct {
Breakpoint api.Breakpoint
}
type CreateEBPFTracepointIn ¶
type CreateEBPFTracepointIn struct {
FunctionName string
}
type CreateEBPFTracepointOut ¶
type CreateEBPFTracepointOut struct {
Breakpoint api.Breakpoint
}
type CreateWatchpointIn ¶
type CreateWatchpointOut ¶
type CreateWatchpointOut struct {
*api.Breakpoint
}
type DebugInfoDirectoriesIn ¶
type DebugInfoDirectoriesOut ¶
type DebugInfoDirectoriesOut struct {
List []string
}
type DisassembleIn ¶
type DisassembleIn struct {
Scope api.EvalScope
StartPC, EndPC uint64
Flavour api.AssemblyFlavour
}
type DisassembleOut ¶
type DisassembleOut struct {
Disassemble api.AsmInstructions
}
type DownloadLibraryDebugInfoIn ¶
type DownloadLibraryDebugInfoIn struct {
N int
}
type DownloadLibraryDebugInfoOut ¶
type DownloadLibraryDebugInfoOut struct {
}
type DumpCancelIn ¶
type DumpCancelIn struct {
}
type DumpCancelOut ¶
type DumpCancelOut struct {
}
type DumpStartIn ¶
type DumpStartIn struct {
Destination string
}
type DumpStartOut ¶
type DumpWaitIn ¶
type DumpWaitIn struct {
Wait int
}
type DumpWaitOut ¶
type ExamineMemoryIn ¶
ExamineMemoryIn holds the arguments of ExamineMemory
type ExaminedMemoryOut ¶
ExaminedMemoryOut holds the return values of ExamineMemory
type FindLocationIn ¶
type FindLocationIn struct {
Scope api.EvalScope
Loc string
IncludeNonExecutableLines bool
// SubstitutePathRules is a slice of source code path substitution rules,
// the first entry of each pair is the path of a directory as it appears in
// the executable file (i.e. the location of a source file when the program
// was compiled), the second entry of each pair is the location of the same
// directory on the client system.
SubstitutePathRules [][2]string
}
type FindLocationOut ¶
type FollowExecEnabledIn ¶
type FollowExecEnabledIn struct {
}
type FollowExecEnabledOut ¶
type FollowExecEnabledOut struct {
Enabled bool
}
type FollowExecIn ¶
type FollowExecOut ¶
type FollowExecOut struct {
}
type FunctionReturnLocationsIn ¶
type FunctionReturnLocationsIn struct {
// FnName is the name of the function for which all
// return locations should be given.
FnName string
}
FunctionReturnLocationsIn holds arguments for the FunctionReturnLocationsRPC call. It holds the name of the function for which all return locations should be given.
type FunctionReturnLocationsOut ¶
type FunctionReturnLocationsOut struct {
// Addrs is the list of all locations where the given function returns.
Addrs []uint64
}
FunctionReturnLocationsOut holds the result of the FunctionReturnLocations RPC call. It provides the list of addresses that the given function returns, for example with a `RET` instruction or `CALL runtime.deferreturn`.
type GetBreakpointIn ¶
type GetBreakpointOut ¶
type GetBreakpointOut struct {
Breakpoint api.Breakpoint
}
type GetBufferedTracepointsIn ¶
type GetBufferedTracepointsIn struct {
}
type GetBufferedTracepointsOut ¶
type GetBufferedTracepointsOut struct {
TracepointResults []api.TracepointResult
}
type GetEventsIn ¶
type GetEventsIn struct {
}
type GetEventsOut ¶
type GetThreadIn ¶
type GetThreadIn struct {
Id int
}
type GetThreadOut ¶
type GuessSubstitutePathIn ¶
type GuessSubstitutePathIn struct {
Args api.GuessSubstitutePathIn
}
type GuessSubstitutePathOut ¶
type GuessSubstitutePathOut struct {
List [][2]string
}
type IsMulticlientIn ¶
type IsMulticlientIn struct {
}
type IsMulticlientOut ¶
type IsMulticlientOut struct {
// IsMulticlient returns true if the headless instance was started with --accept-multiclient
IsMulticlient bool
}
type LastModifiedIn ¶
type LastModifiedIn struct {
}
type LastModifiedOut ¶
type ListBreakpointsIn ¶
type ListBreakpointsIn struct {
All bool
}
type ListBreakpointsOut ¶
type ListBreakpointsOut struct {
Breakpoints []*api.Breakpoint
}
type ListCheckpointsIn ¶
type ListCheckpointsIn struct {
}
type ListCheckpointsOut ¶
type ListCheckpointsOut struct {
Checkpoints []api.Checkpoint
}
type ListDynamicLibrariesIn ¶
type ListDynamicLibrariesIn struct {
}
ListDynamicLibrariesIn holds the arguments of ListDynamicLibraries
type ListDynamicLibrariesOut ¶
ListDynamicLibrariesOut holds the return values of ListDynamicLibraries
type ListFunctionArgsIn ¶
type ListFunctionArgsIn struct {
Scope api.EvalScope
Cfg api.LoadConfig
}
type ListFunctionArgsOut ¶
type ListFunctionsIn ¶
type ListFunctionsOut ¶
type ListFunctionsOut struct {
Funcs []string
}
type ListGoroutinesIn ¶
type ListGoroutinesIn struct {
Start int
Count int
Filters []api.ListGoroutinesFilter
api.GoroutineGroupingOptions
EvalScope *api.EvalScope
}
type ListGoroutinesOut ¶
type ListLocalVarsIn ¶
type ListLocalVarsIn struct {
Scope api.EvalScope
Cfg api.LoadConfig
}
type ListLocalVarsOut ¶
type ListPackageVarsIn ¶
type ListPackageVarsIn struct {
Filter string
Cfg api.LoadConfig
}
type ListPackageVarsOut ¶
type ListPackagesBuildInfoIn ¶
type ListPackagesBuildInfoIn struct {
IncludeFiles bool
Filter string // if not empty, returns only packages matching the regexp.
}
ListPackagesBuildInfoIn holds the arguments of ListPackagesBuildInfo.
type ListPackagesBuildInfoOut ¶
type ListPackagesBuildInfoOut struct {
List []api.PackageBuildInfo
}
ListPackagesBuildInfoOut holds the return values of ListPackagesBuildInfo.
type ListRegistersIn ¶
type ListRegistersOut ¶
type ListSourcesIn ¶
type ListSourcesIn struct {
Filter string
}
type ListSourcesOut ¶
type ListSourcesOut struct {
Sources []string
}
type ListTargetsIn ¶
type ListTargetsIn struct {
}
type ListTargetsOut ¶
type ListThreadsIn ¶
type ListThreadsIn struct {
}
type ListThreadsOut ¶
type ListTypesIn ¶
type ListTypesIn struct {
Filter string
}
type ListTypesOut ¶
type ListTypesOut struct {
Types []string
}
type ProcessExitedError ¶
type ProcessExitedError struct {
// contains filtered or unexported fields
}
func (*ProcessExitedError) Error ¶
func (err *ProcessExitedError) Error() string
type ProcessPidIn ¶
type ProcessPidIn struct {
}
type ProcessPidOut ¶
type ProcessPidOut struct {
Pid int
}
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
Client is a RPC service.Client.
func (*RPCClient) AmendBreakpoint ¶
func (c *RPCClient) AmendBreakpoint(bp *api.Breakpoint) error
func (*RPCClient) AttachedToExistingProcess ¶
func (*RPCClient) CancelDownloads ¶
func (*RPCClient) CancelNext ¶
func (*RPCClient) Checkpoint ¶
Checkpoint sets a checkpoint at the current position.
func (*RPCClient) ClearBreakpoint ¶
func (c *RPCClient) ClearBreakpoint(id int) (*api.Breakpoint, error)
func (*RPCClient) ClearBreakpointByName ¶
func (c *RPCClient) ClearBreakpointByName(name string) (*api.Breakpoint, error)
func (*RPCClient) ClearCheckpoint ¶
ClearCheckpoint removes a checkpoint
func (*RPCClient) Continue ¶
func (c *RPCClient) Continue() <-chan *api.DebuggerState
func (*RPCClient) CoreDumpCancel ¶
func (*RPCClient) CoreDumpStart ¶
func (*RPCClient) CreateBreakpoint ¶
func (c *RPCClient) CreateBreakpoint(breakPoint *api.Breakpoint) (*api.Breakpoint, error)
CreateBreakpoint will send a request to the RPC server to create a breakpoint. Please refer to the documentation for `Debugger.CreateBreakpoint` for a description of how the requested breakpoint parameters are interpreted and used: https://pkg.go.dev/github.com/go-delve/delve/service/debugger#Debugger.CreateBreakpoint
func (*RPCClient) CreateBreakpointWithExpr ¶
func (c *RPCClient) CreateBreakpointWithExpr(breakPoint *api.Breakpoint, locExpr string, substitutePathRules [][2]string, suspended bool) (*api.Breakpoint, error)
CreateBreakpointWithExpr is like CreateBreakpoint but will also set a location expression to be used to restore the breakpoint after it is disabled.
func (*RPCClient) CreateEBPFTracepoint ¶
func (*RPCClient) CreateWatchpoint ¶
func (*RPCClient) DirectionCongruentContinue ¶
func (c *RPCClient) DirectionCongruentContinue() <-chan *api.DebuggerState
func (*RPCClient) DisassemblePC ¶
func (c *RPCClient) DisassemblePC(scope api.EvalScope, pc uint64, flavour api.AssemblyFlavour) (api.AsmInstructions, error)
DisassemblePC disassembles function containing pc
func (*RPCClient) DisassembleRange ¶
func (c *RPCClient) DisassembleRange(scope api.EvalScope, startPC, endPC uint64, flavour api.AssemblyFlavour) (api.AsmInstructions, error)
DisassembleRange disassembles code between startPC and endPC
func (*RPCClient) Disconnect ¶
func (*RPCClient) DownloadLibraryDebugInfo ¶
func (*RPCClient) EvalVariable ¶
func (*RPCClient) ExamineMemory ¶
func (*RPCClient) FindLocation ¶
func (*RPCClient) FollowExec ¶
FollowExec enabled or disabled follow exec mode. When follow exec is enabled Delve will automatically attach to new subprocesses with a command line matched by regex, if regex is nil all new subprocesses are automatically debugged.
func (*RPCClient) FollowExecEnabled ¶
FollowExecEnabled returns true if follow exec mode is enabled.
func (*RPCClient) FunctionReturnLocations ¶
func (*RPCClient) GetBreakpoint ¶
func (c *RPCClient) GetBreakpoint(id int) (*api.Breakpoint, error)
func (*RPCClient) GetBreakpointByName ¶
func (c *RPCClient) GetBreakpointByName(name string) (*api.Breakpoint, error)
func (*RPCClient) GetBufferedTracepoints ¶
func (c *RPCClient) GetBufferedTracepoints() ([]api.TracepointResult, error)
func (*RPCClient) GetDebugInfoDirectories ¶
func (*RPCClient) GetStateNonBlocking ¶
func (c *RPCClient) GetStateNonBlocking() (*api.DebuggerState, error)
func (*RPCClient) GuessSubstitutePath ¶
func (*RPCClient) IsMulticlient ¶
func (*RPCClient) LastModified ¶
func (*RPCClient) ListBreakpoints ¶
func (c *RPCClient) ListBreakpoints(all bool) ([]*api.Breakpoint, error)
func (*RPCClient) ListCheckpoints ¶
func (c *RPCClient) ListCheckpoints() ([]api.Checkpoint, error)
ListCheckpoints gets all checkpoints.
func (*RPCClient) ListDynamicLibraries ¶
func (*RPCClient) ListFunctionArgs ¶
func (*RPCClient) ListFunctions ¶
func (*RPCClient) ListGoroutines ¶
func (*RPCClient) ListGoroutinesWithFilter ¶
func (c *RPCClient) ListGoroutinesWithFilter(start, count int, filters []api.ListGoroutinesFilter, group *api.GoroutineGroupingOptions, scope *api.EvalScope) ([]*api.Goroutine, []api.GoroutineGroup, int, bool, error)
func (*RPCClient) ListLocalVariables ¶
func (*RPCClient) ListPackageVariables ¶
func (*RPCClient) ListPackagesBuildInfo ¶
func (*RPCClient) ListScopeRegisters ¶
func (*RPCClient) ListTargets ¶
ListTargets returns the current list of debug targets.
func (*RPCClient) ListThreadRegisters ¶
func (*RPCClient) ProcessPid ¶
func (*RPCClient) Restart ¶
func (c *RPCClient) Restart(rebuild bool) ([]api.DiscardedBreakpoint, error)
func (*RPCClient) RestartFrom ¶
func (*RPCClient) ReverseNext ¶
func (c *RPCClient) ReverseNext() (*api.DebuggerState, error)
func (*RPCClient) ReverseStep ¶
func (c *RPCClient) ReverseStep() (*api.DebuggerState, error)
func (*RPCClient) ReverseStepInstruction ¶
func (c *RPCClient) ReverseStepInstruction(skipCalls bool) (*api.DebuggerState, error)
func (*RPCClient) ReverseStepOut ¶
func (c *RPCClient) ReverseStepOut() (*api.DebuggerState, error)
func (*RPCClient) Rewind ¶
func (c *RPCClient) Rewind() <-chan *api.DebuggerState
func (*RPCClient) SetDebugInfoDirectories ¶
func (*RPCClient) SetEventsFn ¶
func (*RPCClient) SetReturnValuesLoadConfig ¶
func (c *RPCClient) SetReturnValuesLoadConfig(cfg *api.LoadConfig)
func (*RPCClient) SetVariable ¶
func (*RPCClient) Stacktrace ¶
func (c *RPCClient) Stacktrace(goroutineId int64, depth int, opts api.StacktraceOptions, cfg *api.LoadConfig) ([]api.Stackframe, error)
func (*RPCClient) StepInstruction ¶
func (c *RPCClient) StepInstruction(skipCalls bool) (*api.DebuggerState, error)
func (*RPCClient) StopRecording ¶
func (*RPCClient) SwitchGoroutine ¶
func (c *RPCClient) SwitchGoroutine(goroutineID int64) (*api.DebuggerState, error)
func (*RPCClient) SwitchThread ¶
func (c *RPCClient) SwitchThread(threadID int) (*api.DebuggerState, error)
func (*RPCClient) ToggleBreakpoint ¶
func (c *RPCClient) ToggleBreakpoint(id int) (*api.Breakpoint, error)
func (*RPCClient) ToggleBreakpointByName ¶
func (c *RPCClient) ToggleBreakpointByName(name string) (*api.Breakpoint, error)
func (*RPCClient) TraceDirectory ¶
TraceDirectory returns the path to the trace directory for a recording.
func (*RPCClient) WaitForRecordingDone ¶
func (c *RPCClient) WaitForRecordingDone()
type RecordedIn ¶
type RecordedIn struct {
}
type RecordedOut ¶
type RestartIn ¶
type RestartIn struct {
// Position to restart from, if it starts with 'c' it's a checkpoint ID,
// otherwise it's an event number. Only valid for recorded targets.
Position string
// ResetArgs tell whether NewArgs and NewRedirects should take effect.
ResetArgs bool
// NewArgs are arguments to launch a new process. They replace only the
// argv[1] and later. Argv[0] cannot be changed.
NewArgs []string
// When Rerecord is set the target will be rerecorded
Rerecord bool
// When Rebuild is set the process will be build again
Rebuild bool
NewRedirects [3]string
}
type RestartOut ¶
type RestartOut struct {
DiscardedBreakpoints []api.DiscardedBreakpoint
}
type StacktraceIn ¶
type StacktraceIn struct {
Id int64
Depth int
Full bool
Defers bool // read deferred functions (equivalent to passing StacktraceReadDefers in Opts)
Opts api.StacktraceOptions
Cfg *api.LoadConfig
}
type StacktraceOut ¶
type StacktraceOut struct {
Locations []api.Stackframe
}
type StateIn ¶
type StateIn struct {
// If NonBlocking is true State will return immediately even if the target process is running.
NonBlocking bool
}
type StateOut ¶
type StateOut struct {
State *api.DebuggerState
}
type StopRecordingIn ¶
type StopRecordingIn struct {
}
type StopRecordingOut ¶
type StopRecordingOut struct {
}
type ToggleBreakpointIn ¶
type ToggleBreakpointOut ¶
type ToggleBreakpointOut struct {
Breakpoint *api.Breakpoint
}