Class Debug


  • public final class Debug
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.io.PrintStream out  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Debug()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void println()  
      static void println​(int pc, java.lang.Object obj)
      Like println, but will print PC, if it's passed in e.g.
      static void println​(java.lang.Object x)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • out

        private static java.io.PrintStream out
    • Constructor Detail

      • Debug

        private Debug()
    • Method Detail

      • println

        public static void println()
      • println

        public static void println​(java.lang.Object x)
      • println

        public static void println​(int pc,
                                   java.lang.Object obj)
        Like println, but will print PC, if it's passed in e.g. Debug.println(getPC(), "Hello world"); will print [PC:42] Hello world
        Parameters:
        pc - the program counter
        obj - the object to output