Example #1
0
        public LuaDebugApp()
        {
            m_Lua = new Lua();
            m_Lua.HookException         += Lua_HookException;
            m_Debugger                   = new LuaDebugger(m_Lua);
            m_Debugger.FullTraceData    += Debugger_FullTraceData;
            m_Debugger.Stoping          += Debugger_Stoping;
            m_Debugger.WaitingForAction += Debugger_WaitingForAction;

            m_Debugger.Enabled = true;
        }
Example #2
0
        /// <summary />
        public ScriptDebugger(LuaSourceContainer script)
        {
            Script      = script;
            NeoDebugger = new LuaDebugger(this);

            _breakpoints = new List <DebuggerBreakpoint>();
            _watches     = new List <DebuggerWatch>();

            BreakpointAdded   = new Signal <DebuggerBreakpoint>(this);
            BreakpointRemoved = new Signal <DebuggerBreakpoint>(this);
            EncounteredBreak  = new Signal <DebuggerBreakpoint>(this);
            Resuming          = new Signal <double>(this);
            WatchAdded        = new Signal <DebuggerWatch>(this);
            WatchRemoved      = new Signal <DebuggerWatch>(this);

            script.Debugger = this;
        }