com.github.johnreedlol

Debug

object Debug

Contains static debug functions for Java and Scala. https://github.com/JohnReedLOL/scala-trace-debug

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Debug
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def arrayErr[T](coll: Array[T], start: Int = 0, numElements: Int = Int.MaxValue, numLines: Int = 1): String

    Same as Macro.

    Same as Macro.containerErr[ContainedT], but for Java Arrays (callable from Java Code)

  7. def arrayOut[T](coll: Array[T], start: Int = 0, numElements: Int = Int.MaxValue, numLines: Int = 1): String

    Same as Macro.

    Same as Macro.containerOut[ContainedT], but for Java Arrays (callable from Java Code)

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def assert(assertion: Boolean, message: String, numLines: Int = Int.MaxValue): String

    A fatal assertion.

    A fatal assertion. Terminates the program with exit code "7" Note: "assert" is a reserved keyword in Java, use "assrt" instead.

    assertion

    the assertion that must be true for the program to run.

    message

    the message to be printed to standard error on assertion failure

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Example:
    1. Debug.assert( 1 + 2 == 4, "Error: one plus two is not equal to four" )

    Note

    this (and other assertions not marked "nonFatal") are fatal. To disable, please call "Debug.fatalAssertOffSE()"

  10. def assertOut(assertion: Boolean, message: String, numLines: Int = Int.MaxValue): String

    A fatal assertion.

    A fatal assertion. Terminates the program with exit code "7"

    assertion

    the assertion that must be true for the program to run.

    message

    the message to be printed to standard out on assertion failure

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

    Example:
    1. Debug.assertOut( 1 + 2 == 4, "Error: one plus two is not equal to four" )

    Note

    this (and other assertions not marked "nonFatal") are fatal. To disable, please call "Debug.fatalAssertOffSE()"

  11. def check(assertion: Boolean, message: String, numLines: Int = Int.MaxValue): String

    Like Debug.

    Like Debug.assert(), but does not terminate the application

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

  12. def checkOut(assertion: Boolean, message: String, numLines: Int = Int.MaxValue): String

    Like Debug.

    Like Debug.assertOut(), but does not terminate the application

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def disableEverything(): Unit

    Disables tracing and asserts.

    Disables tracing and asserts. Both fatal and non-fatal assertions are disabled. Does not disable print or println

  15. def enableEverything(): Unit

    Enables tracing and asserts, including fatal assertions.

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def err(toPrint: Any, numLines: Int): String

    Traces to standard error with a N line stack trace.

    Traces to standard error with a N line stack trace.

    toPrint

    whatever it is you want to print.

    numLines

    the number of lines to trace

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

  19. def err(toPrint: Any): String

    Traces to standard error with a one line stack trace.

    Traces to standard error with a one line stack trace.

    toPrint

    whatever it is you want to print.

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

  20. def fatalAssertOff(): Unit

    Disables fatal assertions.

    Disables fatal assertions. Has no effect on "check", only on "assert" and other fatal assert methods (assertEquals, etc.)

  21. def fatalAssertOn(): Unit

    Enables fatal assertions.

    Enables fatal assertions. Has no effect on "check", only on "assert" and other fatal assert methods (assertEquals, etc.)

  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def getArrayAsString[T](coll: Array[T], start: Int = 0, numElements: Int = Int.MaxValue): String

    Gets the collection as a string of n elements from start to start + numElements

    Gets the collection as a string of n elements from start to start + numElements

    Attributes
    protected[com.github.johnreedlol]
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def getElementsPerRow(): Int

    Uses Java notation for Java users

    Uses Java notation for Java users

    returns

    the number of elements per row for container printing

  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def isFatalAssertOn: Boolean

    Tells you whether fatal asserts are on or off

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def isNonFatalAssertOn: Boolean

    Tells you whether non-fatal asserts are on or off

  30. def isTraceErrOn: Boolean

    Tells you whether tracing to standard error is on or off Note that disabling the "trace" feature does not disable the "assert" feature

  31. def isTraceOutOn: Boolean

    Tells you whether tracing to standard out is on or off Note that disabling the "traceStdOut" feature does not disable the "assertStdOut" feature

  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. def nonFatalAssertOff(): Unit

    Disables non-fatal assertions.

    Disables non-fatal assertions. Has no effect on "assert" and other fatal assert methods (assertEquals, etc.)

  34. def nonFatalAssertOn(): Unit

    Enables non-fatal assertions.

    Enables non-fatal assertions. Has no effect on "assert" and other fatal assert methods (assertEquals, etc.)

  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. def out(toPrint: Any, numLines: Int): String

    Same as Debug.

    Same as Debug.err(toPrint: Any, numLines: Int), but prints to standard out instead of standard error

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

  38. def out(toPrint: Any): String

    Same as Debug.

    Same as Debug.err, but prints to standard out instead of standard error

    returns

    the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.

  39. def setElementsPerRow(elementsPerRow: Int): Unit

    Uses Java notation for Java users

    Uses Java notation for Java users

    elementsPerRow

    the number of elements per row for container printing

  40. val stackOffset: Int

    Stack offset is 2 because the first row in the stack trace is Thread and the second row is internal call

    Stack offset is 2 because the first row in the stack trace is Thread and the second row is internal call

    Attributes
    protected[com.github.johnreedlol]
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toString(): String

    Definition Classes
    AnyRef → Any
  43. def traceErrOff(): Unit

    Disables tracing to standard error.

    Disables tracing to standard error. Has no effect on "print" or "println", only on "trace" methods

  44. def traceErrOn(): Unit

    Enables tracing to standard error.

    Enables tracing to standard error. Has no effect on "print" or "println", only on "trace" methods

  45. def traceOutOff(): Unit

    Disables tracing to standard out.

    Disables tracing to standard out. Has no effect on "print" or "println", only on "traceStdOut" methods

  46. def traceOutOn(): Unit

    Enables tracing to standard out.

    Enables tracing to standard out. Has no effect on "print" or "println", only on "traceStdOut" methods

  47. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped