Versions in this module Expand all Collapse all v0 v0.1.0 Jul 24, 2024 v0.0.3 Jul 16, 2024 Changes in this version + var Debuggers = map[fileinfo.Known]func(path, rootPath string, outbuf *texteditor.Buffer, pars *Params) (GiDebug, error) type Params + TestName string type Variable + ElementValue string + func (t *Variable) SetElementValue(v string) *Variable v0.0.2 Apr 14, 2024 Changes in this version type Variable + func (t *Variable) NodeType() *types.Type v0.0.1 Mar 17, 2024 v0.0.0 Jan 20, 2024 Changes in this version + var DefaultParams = Params + var IsRunningErr = errors.New("debugger is currently running and cannot return info") + var NotStartedErr = errors.New("debugger not started") + var VariableType = gti.AddType(>i.Type{ ... }) + func SortBreaks(brk []*Break) + func SortVars(vrs []*Variable) + type AllState struct + Breaks []*Break + CurBreak int + CurBreaks []*Break + CurFrame int + CurTask int + CurThread int + FindFrames []*Frame + GlobalVars []*Variable + Mode Modes + Stack []*Frame + State State + Status Status + Tasks []*Task + Threads []*Thread + Vars []*Variable + func (as *AllState) AddBreak(fpath string, line int) *Break + func (as *AllState) BlankState() + func (as *AllState) BreakByFile(fpath string, line int) (*Break, int) + func (as *AllState) BreakByID(id int) (*Break, int) + func (as *AllState) DeleteBreakByFile(fpath string, line int) bool + func (as *AllState) DeleteBreakByID(id int) bool + func (as *AllState) MergeBreaks() + func (as *AllState) StackFrame(idx int) *Frame + func (as *AllState) VarByName(varNm string) *Variable + type Break struct + Cond string + FPath string + File string + Func string + ID int + Line int + On bool + PC uint64 + Trace bool + func BreakByFile(bks []*Break, fpath string, line int) (*Break, int) + func BreakByID(bks []*Break, id int) (*Break, int) + type Frame struct + Args []*Variable + Depth int + FPath string + File string + Func string + Line int + PC uint64 + ThreadID int + Vars []*Variable + type GiDebug interface + AmendBreak func(id int, fname string, line int, cond string, trace bool) error + CancelNext func() error + ClearBreak func(id int) error + Continue func(all *AllState) <-chan *State + CurThreadID func(all *AllState) int + Detach func(killProcess bool) error + Disconnect func(cont bool) error + FindFrames func(all *AllState, fname string, line int) ([]*Frame, error) + FollowPtr func(vr *Variable) error + GetBreak func(id int) (*Break, error) + GetState func() (*State, error) + GetThread func(id int) (*Thread, error) + GetVar func(expr string, threadID int, frame int) (*Variable, error) + HasTasks func() bool + InitAllState func(all *AllState) error + IsActive func() bool + LastModified func() time.Time + ListBreaks func() ([]*Break, error) + ListFuncs func(filter string) ([]string, error) + ListGlobalVars func(filter string) ([]*Variable, error) + ListSources func(filter string) ([]string, error) + ListTasks func() ([]*Task, error) + ListThreads func() ([]*Thread, error) + ListTypes func(filter string) ([]string, error) + ListVars func(threadID int, frame int) ([]*Variable, error) + ProcessPid func() int + Restart func() error + SetBreak func(fname string, line int) (*Break, error) + SetParams func(params *Params) + SetVar func(name, value string, threadID int, frame int) error + Stack func(threadID int, depth int) ([]*Frame, error) + Start func(path, rootPath string, outbuf *texteditor.Buf, pars *Params) error + StepInto func() (*State, error) + StepOut func() (*State, error) + StepOver func() (*State, error) + StepSingle func() (*State, error) + Stop func() (*State, error) + SwitchTask func(threadID int) (*State, error) + SwitchThread func(threadID int) (*State, error) + UpdateAllState func(all *AllState, threadID int, frame int) error + UpdateBreaks func(brk *[]*Break) error + WriteToConsole func(msg string) + type Location struct + FPath string + File string + Func string + Line int + PC uint64 + type Modes int32 + const Attach + const Exec + const Test + type Params struct + Args []string + GetVar VarParams + Mode Modes + PID uint64 + StatFunc func(stat Status) + VarList VarParams + type State struct + CurTrace int + Err error + ExitStatus int + Exited bool + NextUp bool + Running bool + Task Task + Thread Thread + func (st *State) String() string + type Status int32 + const Breakpoint + const Building + const Error + const Finished + const NotInit + const Ready + const Running + const StatusN + const Stopped + func StatusValues() []Status + func (i *Status) SetInt64(in int64) + func (i *Status) SetString(s string) error + func (i *Status) UnmarshalText(text []byte) error + func (i Status) Desc() string + func (i Status) Int64() int64 + func (i Status) IsValid() bool + func (i Status) MarshalText() ([]byte, error) + func (i Status) String() string + func (i Status) Values() []enums.Enum + type Task struct + FPath string + File string + Func string + ID int + LaunchLoc Location + Line int + PC uint64 + StartLoc Location + Thread int + func TaskByID(thrs []*Task, id int) (*Task, int) + func (th *Task) String() string + type Thread struct + FPath string + File string + Func string + ID int + Line int + PC uint64 + Task int + func ThreadByID(thrs []*Thread, id int) (*Thread, int) + func (th *Thread) String() string + type VarParams struct + FollowPointers bool + MaxArrayValues int + MaxRecurse int + MaxStringLen int + MaxStructFields int + type Variable struct + Addr uintptr + Cap int64 + Dbg GiDebug + ElValue string + FullTypeStr string + Heap bool + Kind syms.Kinds + Len int64 + List []string + Loc Location + Map map[string]string + MapVar map[string]*Variable + TypeStr string + Value string + func NewVariable(par ki.Ki, name ...string) *Variable + func (t *Variable) KiType() *gti.Type + func (t *Variable) New() ki.Ki + func (t *Variable) SetAddr(v uintptr) *Variable + func (t *Variable) SetCap(v int64) *Variable + func (t *Variable) SetDbg(v GiDebug) *Variable + func (t *Variable) SetElValue(v string) *Variable + func (t *Variable) SetFullTypeStr(v string) *Variable + func (t *Variable) SetHeap(v bool) *Variable + func (t *Variable) SetKind(v syms.Kinds) *Variable + func (t *Variable) SetLen(v int64) *Variable + func (t *Variable) SetList(v ...string) *Variable + func (t *Variable) SetLoc(v Location) *Variable + func (t *Variable) SetMap(v map[string]string) *Variable + func (t *Variable) SetMapVar(v map[string]*Variable) *Variable + func (t *Variable) SetTypeStr(v string) *Variable + func (t *Variable) SetValue(v string) *Variable + func (vr *Variable) FollowPtr() + func (vr *Variable) Label() string + func (vr *Variable) TypeInfo(newlines bool) string + func (vr *Variable) ValueString(newlines bool, ident int, maxdepth, maxlen int, outType bool) string