I have code that looks like the following, which works fine for displaying the message, but can’t figure out any way to get a hold of the stack trace.
try { throw new RuntimeException('This is bad stuff!'); } catch (Exception e ) { mainForm.append('Exception: ' + e.getMessage()); }
Calling e.printStackTrace() sends it somewhere that I can’t find.
see this article: http://lwuit.blogspot.com/2008/12/redirecting-output-on-s60-devices.html
too bad there is no System.setErr(PrintWriter) or Thread.getStackTrace()
I don’t think there is a (generic) solution for this problem