Exemplo n.º 1
0
 public void SelectFrame(int index)
 {
     if (interpreter.HasCurrentThread &&
         interpreter.CurrentThread.GetBacktrace() != null &&
         interpreter.CurrentThread.GetBacktrace().Frames.Length > index)
     {
         interpreter.CurrentThread.GetBacktrace().CurrentFrameIndex = index;
         debuggerService.NotifyStateChange();
     }
 }
Exemplo n.º 2
0
 public void SelectThread(int id)
 {
     try {
         interpreter.CurrentThread = interpreter.GetThread(id);
         debuggerService.NotifyStateChange();
     } catch {
         // There might be a race condition and the thread might have just terminated
         Console.WriteLine("Failed to select thread {0}", id);
     }
 }