Пример #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;
			}
		}
Пример #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;
     }
 }
Пример #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;
         }
     }
 }
Пример #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);
            }
        }
Пример #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));
        }
Пример #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);
		}
Пример #7
0
		public CallstackUpdateEventArgs(LuaValue thread, LuaStackFrame [] stackFrames, int currentFrame)
		{
			mThread = thread;
			mStackFrames = stackFrames;
			mCurrentFrame = currentFrame;
		}
Пример #8
0
 void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
 {
     variablesListView.Enabled = frame != null;
 }
Пример #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));
		}
Пример #10
0
		void Debugger_CurrentStackFrameChanged(DebugManager sender, LuaStackFrame frame)
		{
			variablesListView.Enabled = frame != null;
		}
Пример #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;
			}
		}