public class DebugInfo extends Object
| Constructor and Description |
|---|
DebugInfo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
debug(String s)
A cheap way to dump a temporary debug statement to System.out that indicates
where it's being dumped from.
|
static void |
debugWithTrace(String s) |
static String |
extractTheStack(Exception ex)
A convenience function to extract the stack from an exception as a string.
|
static String |
getCompleteCurrentMethod()
Gets the name of the current method.
|
static void |
getCurrentLine()
Gets the current line number.
|
static String |
getCurrentLineNumber() |
static String |
getCurrentMethod()
Gets the name of the current method.
|
static String |
getCurrentStack()
Gets a stack trace to the current point in the code.
|
static String |
getEnumerationString(Class obj,
int value) |
static String |
getShortWhereWeWereCalledFrom()
Returns where the current function was called from.
|
static String |
getWhereWeAreNow()
Returns where we are calling this function from.
|
static String |
getWhereWeAreNowShort()
Returns just the class and line number from where we were called.
|
static String |
getWhereWeWereCalledFrom()
Returns where the current function was called from.
|
public static String getCurrentStack()
public static String getWhereWeWereCalledFrom()
public static String getShortWhereWeWereCalledFrom()
public static String getWhereWeAreNow()
public static String getWhereWeAreNowShort()
public static String getCurrentMethod()
public static String getCompleteCurrentMethod()
public static void getCurrentLine()
public static String getCurrentLineNumber()
public static void debugWithTrace(String s)
public static void debug(String s)
Copyright © 2023. All rights reserved.