Exemplo n.º 1
0
 /// <summary>
 /// Runs the program. Execution stops if either a breakpoint is hit,
 /// an exception is thrown or if <c>Pause</c> method was called.
 /// </summary>
 public void Run()
 {
     if (Engine == null)
     {
         throw new NoProgramLoadedException();
     }
     Engine.Continue();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Performs a single step (generally, executes a single instruction).
 /// </summary>
 public void StepInto()
 {
     if (Engine == null)
     {
         throw new NoProgramLoadedException();
     }
     Breakpoints.Add(new StepBreakpoint(Target.ProgramLocation, StepKind.Into));
     Engine.Continue();
 }