Esempio n. 1
0
		void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
		{
			foreach(ListViewItem item in callstackListView.Items)
			{
				if ((LuaStackFrame) item.Tag == frame)
					item.StateImageIndex = 0;
				else
					item.StateImageIndex = -1;
			}
		}
Esempio n. 2
0
 void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
 {
     if (frame != null && PathUtils.Compare(Document.FileName, frame.File) == 0)
     {
         ExecutionLine = frame.Line;
     }
     else
     {
         ExecutionLine = -1;
     }
 }
Esempio n. 3
0
 void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
 {
     foreach (ListViewItem item in callstackListView.Items)
     {
         if ((LuaStackFrame)item.Tag == frame)
         {
             item.StateImageIndex = 0;
         }
         else
         {
             item.StateImageIndex = -1;
         }
     }
 }
Esempio n. 4
0
        void OnCurrentStackFrameChanged(LuaStackFrame frame, bool getlocals)
        {
            if (frame != null)
            {
                ShowSource(frame.File, frame.Line);
                if (getlocals)
                {
                    mConnectedTarget.RetrieveLocals(mCurrentThread, frame.Depth);
                    mConnectedTarget.RetrieveWatches(mCurrentThread, frame.Depth);
                }
            }

            if (CurrentStackFrameChanged != null)
            {
                CurrentStackFrameChanged(this, frame);
            }
        }
Esempio n. 5
0
        void ProcessMessage_CallstackUpdate()
        {
            Int64 currentThread = m_readBuffer.ReadObjectID();
            int   currentFrame  = m_readBuffer.ReadInt32();
            int   stackCount    = m_readBuffer.ReadInt32();

            LuaStackFrame[] stackFrames = new LuaStackFrame[stackCount];
            for (int index = 0; index < stackCount; ++index)
            {
                string function = m_readBuffer.ReadString();
                string filename = m_readBuffer.ReadString();
                int    line     = m_readBuffer.ReadInt32();

                stackFrames[index] = new LuaStackFrame(index, function, mDebugManager.FindSourceFile(filename), line);
            }

            OnCallstackUpdate(new CallstackUpdateEventArgs(new LuaValue(currentThread, LuaValueType.THREAD), stackFrames, currentFrame));
        }
Esempio n. 6
0
		void OnCurrentStackFrameChanged(LuaStackFrame frame, bool getlocals)
		{
			if (frame != null)
			{
				ShowSource(frame.File, frame.Line);
				if (getlocals)
				{
					mConnectedTarget.RetrieveLocals(mCurrentThread, frame.Depth);
					mConnectedTarget.RetrieveWatches(mCurrentThread, frame.Depth);
				}
			}

			if (CurrentStackFrameChanged != null)
				CurrentStackFrameChanged(this, frame);
		}
Esempio n. 7
0
		public CallstackUpdateEventArgs(LuaValue thread, LuaStackFrame [] stackFrames, int currentFrame)
		{
			mThread = thread;
			mStackFrames = stackFrames;
			mCurrentFrame = currentFrame;
		}
Esempio n. 8
0
 void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
 {
     variablesListView.Enabled = frame != null;
 }
Esempio n. 9
0
		void ProcessMessage_CallstackUpdate()
		{
			Int64 currentThread = m_readBuffer.ReadObjectID();
			int currentFrame = m_readBuffer.ReadInt32();
			int stackCount = m_readBuffer.ReadInt32();
			LuaStackFrame[] stackFrames = new LuaStackFrame[stackCount];
			for (int index = 0; index < stackCount; ++index)
			{
				string function = m_readBuffer.ReadString();
				string filename = m_readBuffer.ReadString();
				int line = m_readBuffer.ReadInt32();

				stackFrames[index] = new LuaStackFrame(index, function, mDebugManager.FindSourceFile(filename), line);
			}

			OnCallstackUpdate(new CallstackUpdateEventArgs(new LuaValue(currentThread, LuaValueType.THREAD), stackFrames, currentFrame));
		}
Esempio n. 10
0
		void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
		{
			variablesListView.Enabled = frame != null;
		}
Esempio n. 11
0
		void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
		{
			if (frame != null && PathUtils.Compare(Document.FileName, frame.File) == 0)
			{
				ExecutionLine = frame.Line;
			}
			else
			{
				ExecutionLine = -1;
			}
		}