Exemple #1
0
 public static void printStack(PrintStream p) {
   final StackTraceElement[] stk = Thread.currentThread().getStackTrace();
   if (stk != null) {
     final int defaultOffset = 3;
     p.println("printStack: ");
     for (int i = defaultOffset; i < stk.length; i++) {
       p.print("  ");
       printStack(p, stk[i]);
       p.println();
     }
   }
 }
Exemple #2
0
 public static void printStack() {
   printStack(ps);
 }