Class Debug
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.Debug
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intThis gets the current level of debugging we are using.static booleanThis gets the status of the debugging functionality.static voidstatic voidsetDebugLevel(int val) This sets the current level of debugging we are using.static voidsetDebugStatus(boolean bVal) This is used to turn debugging off or on.static void
-
Constructor Details
-
Debug
Constructor
-
-
Method Details
-
trace
-
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
-
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
-