Example #1
0
 private void HandleStateDisplaying()
 {
     if (debugger.Mode.HasFlag(DebugMode.DisplayState))
     {
         StateDisplayer.Display(this.decorated);
     }
 }
Example #2
0
        private void HandleDebugging(Instruction currentInstruction)
        {
            if (debugger.Mode.HasFlag(DebugMode.EnableLogging))
            {
                StateDisplayer.Display(currentInstruction);
            }

            HandleStateDisplaying();

            if (debugger.Mode.HasFlag(DebugMode.StepByStep))
            {
                Console.ReadKey();
                Console.SetCursorPosition(0, Console.CursorTop);
            }
        }