Prints the stack trace of the current thread to the specified print stream. @param pStream
(PrintStream pStream)
| 246 | * @param pStream |
| 247 | */ |
| 248 | public static final void printStackTrace(PrintStream pStream){ |
| 249 | StackTraceElement stackTraceElems[] = Thread.currentThread().getStackTrace(); |
| 250 | for(StackTraceElement ste : stackTraceElems){ |
| 251 | pStream.println(ste.toString()); |
| 252 | } |
| 253 | } |
| 254 | } // class Tools |