My client is testing my beta phase Java application on a data that he cannot provide me with (privacy reasons). Although I implemented the handling of most exceptions, application crashes on rare occasions.
Can I log the stacktrace of an uncaught exception to a file so that tester can provide me with it(e.g. NullPointerException)?
Set a Thread.UncaughtExceptionHandler that prints to the specified file.