Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

[java] Making a stack dump

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 felonius   Members   

122
Like
Likes
Like

Posted 28 November 2000 - 05:30 AM

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

#2 SiCrane   Moderators   

11764
Like
Likes
Like

Posted 28 November 2000 - 05:37 AM

Did you try Throwable.printStackTrace()?

#3 felonius   Members   

122
Like
Likes
Like

Posted 28 November 2000 - 09:43 AM

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




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.