Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

felonius

[java] Making a stack dump

This topic is 6508 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!