Creating crash dumps and stack traces in in Java
<p>In my Java application I have a few <code>try</code> <code>catch</code> exception blocks where I'm trying to trap my exceptions. Many of them are handled and therefore totally transparent to the user but I'd like to create a dump file containing the value of variables and the entire call stack so that I can diagnose what caused this issue. Is this possible? A block of code didn't work as it was supposed to althought all looks fine in the front I'd like to debug the application with these dump files.</p>

<p>So far, i've done without anything like this and it's almost impossible to pinpoint what caused the error.</p>

<p>Thanks. </p>
