java.lang.Object
com.sun.ts.tests.common.connector.whitebox.Debug

public class Debug extends Object
  • Constructor Details

    • Debug

      public Debug(String str)
      Constructor
  • Method Details

    • trace

      public static void trace(String str)
    • setDebugStatus

      public static void setDebugStatus(boolean bVal)
      This is used to turn debugging off or on. This is off by default and must be explicitly set to true in order to turn on debugging.
      Parameters:
      bVal - : True means turn debugging on.
    • printDebugStack

      public static void printDebugStack(Exception ex)
    • getDebugStatus

      public static boolean getDebugStatus()
      This gets the status of the debugging functionality. false means that debugging is disabled, true means it is enabled.
      Returns:
      boolean: True means turn debugging on.
    • getDebugLevel

      public static int getDebugLevel()
      This gets the current level of debugging we are using.
      Returns:
      int: 0=none, 1=errors, 2=errors+warnings, 3=all
    • setDebugLevel

      public static void setDebugLevel(int val)
      This sets the current level of debugging we are using.
      Parameters:
      val - : 0=none, 1=errors, 2=errors+warnings, 3=all