There are some exceptions that happen on the device but not on the emulators, for which I've found no way to get the stack trace, since the MIDP Throwable class doesn't let you print the stack trace to a given stream, unlike the one on J2SE.
I tried the Device Connection Tool from the Nokia S60 (Java) SDK, but can't get it to connect. I plug in the phone, verify that the phone shows as connected, and in the Device Connection Tool, I click all the shown ports, one by one, and click Connect, and then run my app on the phone, repro the situation that causes the exception, and notice that the console window in the Device Connection Tool is blank.
What is missing here, and how do I get this tool to work?
I tried using MIDPLogger, but found that it doesn't always work -- sometimes its output is blank or doesn't include the complete contents of sysout/syserr.