Jump to content

  • Log In with Google      Sign In   
  • Create Account


[java] Making a stack dump


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   -  Reputation: 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

Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9489

Like
Likes
Like

Posted 28 November 2000 - 05:37 AM

Did you try Throwable.printStackTrace()?

#3 felonius   Members   -  Reputation: 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.



PARTNERS