Package com.biglybt.core.util
Class Debug
java.lang.Object
com.biglybt.core.util.Debug
Debug-assisting class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AEDiagnosticsLogger
private static final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsException
(Throwable error, Class<? extends Throwable> cla) private static void
diagLoggerLog
(String str) private static void
diagLoggerLogAndOut
(String str, boolean stderr) private static void
static void
static void
dumpThreads
(String name) static void
dumpThreads
(ThreadGroup threadGroup, String indent) static void
dumpThreadsLoop
(String name) static String
static String
getCompressedStackTrace
(int iMaxLines) private static String
getCompressedStackTrace
(int frames_to_skip, int iMaxLines) private static String
getCompressedStackTrace
(Throwable t, int frames_to_skip) static String
getCompressedStackTrace
(Throwable t, int frames_to_skip, int iMaxLines) static String
getCompressedStackTrace
(Throwable t, int frames_to_skip, int iMaxLines, boolean showErrString) static String
getCompressedStackTraceSkipFrames
(int frames_to_skip) static String
static String
static String
getLastCaller
(int numToGoBackFurther) static String
static String
getLastCallerShort
(int numToGoBackFurther) static String
static String
static String
getStackTrace
(boolean bCompressed, boolean bIncludeSelf) static String
getStackTrace
(boolean bCompressed, boolean bIncludeSelf, int iNumLinesToSkip, int iMaxLines) private static String
getStackTrace
(int endNumToSkip) static String
static void
static void
killAWTThreads
(ThreadGroup threadGroup) static void
static void
Prints out the given debug message to System.out, prefixed by the calling class name, method and line number.static void
Prints out the given debug message to System.out, prefixed by the calling class name, method and line number, appending the stacktrace of the given exception.static void
Prints out the given exception stacktrace to System.out, prefixed by the calling class name, method and line number.static void
outDiagLoggerOnly
(String str) static void
outNoStack
(String str) static void
outNoStack
(String str, boolean stderr) static void
static void
static void
printStackTrace
(Throwable e, Object context) static String
secretFileName
(String key) private static void
writeEmergencyLog
(String str)
-
Field Details
-
STOP_AT_INITIALIZER
private static final boolean STOP_AT_INITIALIZER -
diag_logger
-
-
Constructor Details
-
Debug
public Debug()
-
-
Method Details
-
out
Prints out the given debug message to System.out, prefixed by the calling class name, method and line number. -
out
Prints out the given exception stacktrace to System.out, prefixed by the calling class name, method and line number. -
outNoStack
-
outNoStack
-
outDiagLoggerOnly
-
out
Prints out the given debug message to System.out, prefixed by the calling class name, method and line number, appending the stacktrace of the given exception. -
getLastCaller
-
getLastCaller
-
getLastCallerShort
-
getLastCallerShort
-
outStackTrace
public static void outStackTrace() -
getStackTrace
-
killAWTThreads
public static void killAWTThreads() -
getCompressedStackTrace
-
getCompressedStackTrace
-
getCompressedStackTrace
-
getStackTrace
-
getStackTrace
public static String getStackTrace(boolean bCompressed, boolean bIncludeSelf, int iNumLinesToSkip, int iMaxLines) -
getCompressedStackTrace
-
killAWTThreads
-
dumpThreads
-
dumpThreads
-
dumpThreadsLoop
-
dumpSystemProperties
public static void dumpSystemProperties() -
getNestedExceptionMessage
-
containsException
-
getNestedExceptionMessageAndStack
-
getCompressedStackTraceSkipFrames
-
getCompressedStackTrace
-
getCompressedStackTrace
- Parameters:
iMaxLines
- Max # of stack lines. If invalid input: '<' 0, chops off -MaxLines entries from end- Returns:
-
getExceptionMessage
-
printStackTrace
-
printStackTrace
-
getStackTrace
-
diagLoggerLog
-
diagLoggerLogAndOut
-
diagLoggerLogAndOut
-
writeEmergencyLog
-
secretFileName
- Parameters:
key
-- Returns:
-
main
-