package local
import "cloud.google.com/go/cmd/go-cloud-debug-agent/internal/debug/local"
Package local provides access to a local program.
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) ReadAt(p []byte, offset int64) (int, error)
- func (f *File) WriteAt(p []byte, offset int64) (int, error)
- type Program
- func New(textFile string) (*Program, error)
- func (p *Program) Breakpoint(address uint64) ([]uint64, error)
- func (p *Program) BreakpointAtFunction(name string) ([]uint64, error)
- func (p *Program) BreakpointAtLine(file string, line uint64) ([]uint64, error)
- func (p *Program) DeleteBreakpoints(pcs []uint64) error
- func (p *Program) Eval(expr string) ([]string, error)
- func (p *Program) Evaluate(e string) (debug.Value, error)
- func (p *Program) Frames(count int) ([]debug.Frame, error)
- func (p *Program) Goroutines() ([]*debug.Goroutine, error)
- func (p *Program) Kill() (debug.Status, error)
- func (p *Program) MapElement(m debug.Map, index uint64) (debug.Var, debug.Var, error)
- func (p *Program) Open(name string, mode string) (debug.File, error)
- func (p *Program) Resume() (debug.Status, error)
- func (p *Program) Run(args ...string) (debug.Status, error)
- func (p *Program) Stop() (debug.Status, error)
- func (p *Program) Value(v debug.Var) (debug.Value, error)
- func (p *Program) VarByName(name string) (debug.Var, error)
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File implements the debug.File interface, providing access to file-like resources associated with the target program.
func (*File) Close ¶
func (*File) ReadAt ¶
func (*File) WriteAt ¶
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
Program implements the debug.Program interface. Through that interface it provides access to a program being debugged.
func New ¶
New creates a new program from the specified file. The program can then be started by the Run method.
func (*Program) Breakpoint ¶
func (*Program) BreakpointAtFunction ¶
func (*Program) BreakpointAtLine ¶
func (*Program) DeleteBreakpoints ¶
func (*Program) Eval ¶
func (*Program) Evaluate ¶
func (*Program) Frames ¶
func (*Program) Goroutines ¶
func (*Program) Kill ¶
func (*Program) MapElement ¶
func (*Program) Open ¶
func (*Program) Resume ¶
func (*Program) Run ¶
func (*Program) Stop ¶
func (*Program) Value ¶
func (*Program) VarByName ¶
Source Files ¶
local.go
- Version
- v0.91.0
- Published
- Aug 11, 2021
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 8 minutes ago –
Tools for package owners.