示例#1
0
 private static void printSourceCodeStackTrace(DebugParams par) {
   StackTraceElement[] elements = new Throwable().getStackTrace();
   for (int i = elements.length - 1; i >= 0; i--) {
     StackTraceElement element = elements[i];
     if (isStackElementDebugClassFile(element)) continue;
     printElementInfo(par.stream, element);
   }
 }
示例#2
0
 private static void printSourceCodeFileAndLine(DebugParams par) {
   StackTraceElement[] elements = new Throwable().getStackTrace();
   for (StackTraceElement element : elements) {
     if (!isStackElementDebugClassFile(element)) {
       printElementInfo(par.stream, element);
       break;
     }
   }
 }