[java] Making a stack dump

Started by
1 comment, last by felonius 23 years, 4 months ago
Hi, Does anybody know how to make a full stack dump. By problem is want to prevent all exceptions from leaving a certain method. I have made a try block / catch block like this: try { ..code with exceptions } catch (Throwable e) { ..Dump stack System.exit(1); } How do I dump the full stack? If I just call dumpStack() only the stack from where the catch is made is printed. I want the full stack from where the original exception was thrown. Any ideas? Jacob Marner
Jacob Marner, M.Sc.Console Programmer, Deadline Games
Advertisement
Did you try Throwable.printStackTrace()?
I have tried it now, and it works as I wish. Thank you so much. I can''t believe I missed so simple a solution, but such is life. Thanks again.

Cheers,
Jacob Marner
Jacob Marner, M.Sc.Console Programmer, Deadline Games

This topic is closed to new replies.

Advertisement