org.gcube.contentmanagement.layerindependent.servicehelper
Class DebugUtils
java.lang.Object
org.gcube.contentmanagement.layerindependent.servicehelper.DebugUtils
public class DebugUtils
- extends java.lang.Object
Contains utility functionality for debugging purposes. In particular it
provides methods to identify the current position in the execution stack and
log it, which may be helpful in distributed environments when the use of a
remote debugger is not possible for infrastrutural reasons.
- Author:
- michaelspringmann
Method Summary |
static void |
logStackTrace()
Prints the current call stack by proving an Exception, catching it
immediately, and returning to regular execution. |
static void |
printStackTrace()
Prints the current call stack by proving an Exception, catching it
immediately, and returning to regular execution. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugUtils
public DebugUtils()
printStackTrace
public static void printStackTrace()
- Prints the current call stack by proving an Exception, catching it
immediately, and returning to regular execution.
logStackTrace
public static void logStackTrace()
- Prints the current call stack by proving an Exception, catching it
immediately, and returning to regular execution.