Exemplo n.º 1
0
        private void FillDebugData(InterpreterException ex, int ip)
        {
            // adjust IP
            if (ip == YIELD_SPECIAL_TRAP)
                ip = m_SavedInstructionPtr;
            else
                ip -= 1;

            ex.InstructionPtr = ip;

            var sref = GetCurrentSourceRef(ip);

            ex.DecorateMessage(m_Script, sref, ip);

            ex.CallStack = Debugger_GetCallStack(sref);
        }
Exemplo n.º 2
0
        private void FillDebugData(InterpreterException ex, int ip)
        {
            // adjust IP
            if (ip == YIELD_SPECIAL_TRAP)
            {
                ip = _savedInstructionPtr;
            }
            else
            {
                ip -= 1;
            }

            ex.InstructionPtr = ip;

            var sref = this.GetCurrentSourceRef(ip);

            ex.DecorateMessage(_script, sref, ip);
        }
Exemplo n.º 3
0
        private void FillDebugData(InterpreterException ex, int ip)
        {
            // adjust IP
            if (ip == YIELD_SPECIAL_TRAP)
            {
                ip = m_SavedInstructionPtr;
            }
            else
            {
                ip -= 1;
            }

            ex.InstructionPtr = ip;

            SourceRef sref = GetCurrentSourceRef(ip);

            ex.DecorateMessage(m_Script, sref, ip);

            ex.CallStack = Debugger_GetCallStack(sref);
        }