public DebugEngine(LuaState ls) { this.ls = ls; this.debugHook = new LuaDebugHook(this.DebugHook); this.logCallback = new LuaCFunc(this.LogCallback); RegisterLogFunction(); ErrorHook.SetErrorHandler(ls.L, new ErrorHook.LuaErrorCaught(this.ErrorCaughtHook)); this.fireStateChangedEvent = new Action(FireStateChangedEvent); SetHook(); }
public static extern int lua_sethook(UIntPtr L, LuaDebugHook hookFn, LuaHookType mask, int count);