|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.core3.util.Debug
public class Debug
Debug-assisting class.
Constructor Summary | |
---|---|
Debug()
|
Method Summary | |
---|---|
static boolean |
containsException(Throwable error,
Class<? extends Throwable> cla)
|
static void |
dumpSystemProperties()
|
static void |
dumpThreads(String name)
|
static void |
dumpThreads(ThreadGroup threadGroup,
String indent)
|
static void |
dumpThreadsLoop(String name)
|
static String |
getCompressedStackTrace()
|
static String |
getCompressedStackTrace(int iMaxLines)
|
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 |
getExceptionMessage(Throwable e)
|
static String |
getLastCaller()
|
static String |
getLastCaller(int numToGoBackFurther)
|
static String |
getLastCallerShort()
|
static String |
getLastCallerShort(int numToGoBackFurther)
|
static String |
getNestedExceptionMessage(Throwable e)
|
static String |
getNestedExceptionMessageAndStack(Throwable e)
|
static String |
getStackTrace(boolean bCompressed,
boolean bIncludeSelf)
|
static String |
getStackTrace(boolean bCompressed,
boolean bIncludeSelf,
int iNumLinesToSkip,
int iMaxLines)
|
static String |
getStackTrace(Throwable e)
|
static void |
killAWTThreads()
|
static void |
killAWTThreads(ThreadGroup threadGroup)
|
static void |
main(String[] args)
|
static void |
out(String _debug_message)
Prints out the given debug message to System.out, prefixed by the calling class name, method and line number. |
static void |
out(String _debug_msg,
Throwable _exception)
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 |
out(Throwable _exception)
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 |
outStackTrace()
|
static void |
printStackTrace(Throwable e)
|
static void |
printStackTrace(Throwable e,
Object context)
|
static String |
secretFileName(String key)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Debug()
Method Detail |
---|
public static void out(String _debug_message)
public static void out(Throwable _exception)
public static void outNoStack(String str)
public static void outNoStack(String str, boolean stderr)
public static void outDiagLoggerOnly(String str)
public static void out(String _debug_msg, Throwable _exception)
public static String getLastCaller()
public static String getLastCaller(int numToGoBackFurther)
public static String getLastCallerShort()
public static String getLastCallerShort(int numToGoBackFurther)
public static void outStackTrace()
public static void killAWTThreads()
public static String getCompressedStackTrace(Throwable t, int frames_to_skip, int iMaxLines)
public static String getCompressedStackTrace(Throwable t, int frames_to_skip, int iMaxLines, boolean showErrString)
public static String getStackTrace(boolean bCompressed, boolean bIncludeSelf)
public static String getStackTrace(boolean bCompressed, boolean bIncludeSelf, int iNumLinesToSkip, int iMaxLines)
public static void killAWTThreads(ThreadGroup threadGroup)
public static void dumpThreads(String name)
public static void dumpThreads(ThreadGroup threadGroup, String indent)
public static void dumpThreadsLoop(String name)
public static void dumpSystemProperties()
public static String getNestedExceptionMessage(Throwable e)
public static boolean containsException(Throwable error, Class<? extends Throwable> cla)
public static String getNestedExceptionMessageAndStack(Throwable e)
public static String getCompressedStackTraceSkipFrames(int frames_to_skip)
public static String getCompressedStackTrace()
public static String getCompressedStackTrace(int iMaxLines)
iMaxLines
- Max # of stack lines. If < 0, chops off -MaxLines entries from end
public static String getExceptionMessage(Throwable e)
public static void printStackTrace(Throwable e)
public static void printStackTrace(Throwable e, Object context)
public static String getStackTrace(Throwable e)
public static String secretFileName(String key)
key
-
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |