public class PrintableStack
This class is a debugger helper. It lets us print the stack anywhere in the code.
1) Define a throwable variable like the member of this class.
2) Call System.out.println( getStackTrace(throwable) ); wherever you need to print the stack so far.
Cryptography and Computer Security Research Group Department of Computer Science Bar-Ilan University (Yael Ejgenberg)