开发者

Blackberry crash log collection

开发者 https://www.devze.com 2023-02-11 22:22 出处:网络
Is there a mechanism to collect all the stack traces of a BlackBerry application if I am doing OTA app delivery?

Is there a mechanism to collect all the stack traces of a BlackBerry application if I am doing OTA app delivery?

I believe Apple collects and gives us the crash logs, or you can extract them by connecting the iPhone to a dev machine and using XCode to read the crash logs. Is there an equivalent mechanism for the Blackberry?

If not, are there any libraries that can开发者_如何学C log all the exceptions and push them out to a server?


Automated collection just isn't possible. There's no way to get a stack trace in a String, which would be the first step of an automated crash handler.

There's a StackOverflow question just about getting the stack as a string:
Is there a way to get the stack trace of an exception in form of a String in Blackberry?


If you are doing development and can connect your computer to the device, you can get the event log or console output by using javaloader.exe. JavaLoader has a pretty long help page which it displays if you run it without arguments. You can find JavaLoader.exe in your Eclipse plugins folder, where the BlackBerry JDE is unpacked.

The StackOverflow question that mentions JavaLoader:
Tool to get BlackBerry log


If you really want to ask your users for stack traces, they will appear in the Event Log automatically (at least, for uncaught exceptions). They can use ALT-LGLG from the device home screen (on devices with keyboards) to get into the Event Log, and then from there they can copy the day's events to the clipboard and paste into an email.

The biggest downside to this approach is that the event log is often larger than the clipboard can hold, so you won't get a full event log.

0

精彩评论

暂无评论...
验证码 换一张
取 消