Versions in this module Expand all Collapse all v0 v0.0.3 Mar 2, 2021 Changes in this version + const LUA_TBOOLEAN + const LUA_TFUNCTION + const LUA_TLIGHTUSERDATA + const LUA_TNIL + const LUA_TNONE + const LUA_TNUMBER + const LUA_TSTRING + const LUA_TTABLE + const LUA_TTHREAD + const LUA_TUSERDATA + const Lua_HookCall + const Lua_HookCount + const Lua_HookLine + const Lua_HookRet + var Dbg = newDebugger() + var Fcd = newFacade() + func EnvIndexFunction(L *lua.LState) int + func FixPath(L *lua.LState) int + func GoLuaTypeToCLuaType(t lua.LValueType) (int, string) + func Hook(L *lua.LState) int + func Loader(L *lua.LState) int + func LuaError(L *lua.LState, msg string) int + func ParsePathParts(file string, paths []string) []string + func Preload(L *lua.LState) + func TcpConnect(L *lua.LState) int + type Ar struct + Event int + type BreakPoint struct + Condition string + File string + Line int + PathParts []string + type Debugger struct + BreakPoints []*BreakPoint + CurrentState *lua.LState + ExtNames []string + HelperCode string + HookState HookStateInter + LineSet map[int]struct{} + SkipHook bool + States map[*lua.LState]struct{} + func (d *Debugger) AddBreakPoint(bp *BreakPoint) + func (d *Debugger) Attach(L *lua.LState) + func (d *Debugger) CreateEnv(stackLevel int) (*lua.LTable, bool) + func (d *Debugger) DoAction(action proto.DebugAction) + func (d *Debugger) DoEval(evalContext *EvalContext) bool + func (d *Debugger) EnterDebugMode(L *lua.LState) + func (d *Debugger) Eval(ctx *EvalContext) + func (d *Debugger) ExitDebugMode() + func (d *Debugger) FindBreakPoint(L *lua.LState, ar *Ar) *BreakPoint + func (d *Debugger) FindBreakPointByFile(file string, line int) *BreakPoint + func (d *Debugger) GetFile(L *lua.LState, ar *Ar) string + func (d *Debugger) GetStackLevel(L *lua.LState, skipGo bool) int + func (d *Debugger) GetStacks(L *lua.LState) []*Stack + func (d *Debugger) GetVariable(name string, value lua.LValue, depth int) *Variable + func (d *Debugger) HandleBreak(L *lua.LState) + func (d *Debugger) Hook(L *lua.LState, ar *Ar) + func (d *Debugger) MatchFileName(chunkName string, fileName string) bool + func (d *Debugger) RefreshLineSet() + func (d *Debugger) RemoveAllBreakpoints() + func (d *Debugger) RemoveBreakPoint(file string, line int) + func (d *Debugger) SetHookState(L *lua.LState, newState HookStateInter) + func (d *Debugger) Start(code string) + func (d *Debugger) UpdateHook(L *lua.LState, mask string) + type EvalContext struct + CacheId int + Depth int + Error string + Expr string + Result *Variable + Seq int + StackLevel int + Success bool + type Facade struct + func (f *Facade) HandleMsg(cmd int, req interface{}) + func (f *Facade) OnActionReq(req *proto.ActionReq) + func (f *Facade) OnAddBreakPointReq(req *proto.AddBreakPointReq) + func (f *Facade) OnBreak(L *lua.LState) + func (f *Facade) OnEvalReq(req *proto.EvalReq) + func (f *Facade) OnEvalResult(ctx *EvalContext) + func (f *Facade) OnInitReq(req *proto.InitReq) + func (f *Facade) OnReadyReq() + func (f *Facade) OnRemoveBreakPointReq(req *proto.RemoveBreakPointReq) + func (f *Facade) TcpConnect(L *lua.LState, host string, port int) error + func (f *Facade) WaiteIDE(force bool) + type HookState struct + func (h *HookState) ProcessHook(debugger *Debugger, L *lua.LState, ar *Ar) + func (h *HookState) Start(debugger *Debugger, current *lua.LState) bool + type HookStateBreak struct + func (h *HookStateBreak) ProcessHook(debugger *Debugger, L *lua.LState, ar *Ar) + type HookStateContinue struct + func (h *HookStateContinue) Start(debugger *Debugger, current *lua.LState) bool + type HookStateInter interface + ProcessHook func(debugger *Debugger, L *lua.LState, ar *Ar) + Start func(debugger *Debugger, current *lua.LState) bool + type HookStateStepIn struct + func (h *HookStateStepIn) ProcessHook(debugger *Debugger, L *lua.LState, ar *Ar) + func (h *HookStateStepIn) Start(debugger *Debugger, current *lua.LState) bool + type HookStateStepOut struct + func (h *HookStateStepOut) ProcessHook(debugger *Debugger, L *lua.LState, ar *Ar) + func (h *HookStateStepOut) Start(debugger *Debugger, current *lua.LState) bool + type HookStateStepOver struct + func (h *HookStateStepOver) ProcessHook(debugger *Debugger, L *lua.LState, ar *Ar) + func (h *HookStateStepOver) Start(debugger *Debugger, current *lua.LState) bool + type HookStateStop struct + func (h *HookStateStop) Start(debugger *Debugger, current *lua.LState) bool + type Stack struct + File string + FunctionName string + Level int + Line int + LocalVariables []*Variable + UpvalueVariables []*Variable + type StackLevelBasedState struct + func (h *StackLevelBasedState) Start(debugger *Debugger, current *lua.LState) bool + func (h *StackLevelBasedState) UpdateStackLevel(debugger *Debugger, L *lua.LState, ar *Ar) + type Transport struct + Handler func(int, interface{}) + func (t *Transport) Connect(host string, port int) error + func (t *Transport) Send(cmd int, msg interface{}) + type Variable struct + CacheId int + Children []*Variable + Name string + NameType int + Value string + ValueType int + ValueTypeName string