Class Debug
java.lang.Object
com.biglybt.core.util.Debug
Debug-assisting class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AEDiagnosticsLoggerprivate static final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsException(Throwable error, Class<? extends Throwable> cla) private static voiddiagLoggerLog(String str) private static voiddiagLoggerLogAndOut(String str, boolean stderr) private static voidstatic voidstatic voiddumpThreads(String name) static voiddumpThreads(ThreadGroup threadGroup, String indent) static voiddumpThreadsLoop(String name) static Stringstatic StringgetCompressedStackTrace(int iMaxLines) private static StringgetCompressedStackTrace(int frames_to_skip, int iMaxLines) private static StringgetCompressedStackTrace(Throwable t, int frames_to_skip) static StringgetCompressedStackTrace(Throwable t, int frames_to_skip, int iMaxLines) static StringgetCompressedStackTrace(Throwable t, int frames_to_skip, int iMaxLines, boolean showErrString) static StringgetCompressedStackTraceSkipFrames(int frames_to_skip) static Stringstatic Stringstatic StringgetLastCaller(int numToGoBackFurther) static Stringstatic StringgetLastCallerShort(int numToGoBackFurther) static Stringstatic Stringstatic StringgetStackTrace(boolean bCompressed, boolean bIncludeSelf) static StringgetStackTrace(boolean bCompressed, boolean bIncludeSelf, int iNumLinesToSkip, int iMaxLines) private static StringgetStackTrace(int endNumToSkip) static Stringstatic voidstatic voidkillAWTThreads(ThreadGroup threadGroup) static voidstatic voidPrints out the given debug message to System.out, prefixed by the calling class name, method and line number.static voidPrints 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 voidPrints out the given exception stacktrace to System.out, prefixed by the calling class name, method and line number.static voidoutDiagLoggerOnly(String str) static voidoutNoStack(String str) static voidoutNoStack(String str, boolean stderr) static voidstatic voidstatic voidprintStackTrace(Throwable e, Object context) static StringsecretFileName(String key) private static voidwriteEmergencyLog(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
-
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
-
main
-