/// <summary> /// break at the first event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btPause_Click(object sender, EventArgs e) { DebugCommandStatus = EnumRunStatus.Pause; UserControlDebugger c = CurrentComponentUI; if (c != null) { c.SetRunStatus(c.CurrentThreadId, EnumRunStatus.Pause); } }
/// <summary> /// called when a none-main thread finishes /// </summary> public void ThreadFinished() { if (_ComponentDebugger.Stopping) { return; } int threadId = System.Threading.Thread.CurrentThread.ManagedThreadId; _ComponentDebugger.SetRunStatus(threadId, EnumRunStatus.Finished); }
private void btStepOut_Click(object sender, EventArgs e) { DebugCommandStatus = EnumRunStatus.StepOut; UserControlDebugger c = CurrentComponentUI; if (c != null) { c.SetRunStatus(c.CurrentThreadId, EnumRunStatus.StepOut); c.SetAtBreak(c.CurrentThreadId, false); } }