Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I improve quality of debug data when my app crashes in the wild?

I had my first NullPointerExceptions in my app and it showed up on the Developer Console.

While I was starting to ask for advice here I realised what the problem was, but it brought to the front of my mind something that's been bothering me for some time - how to make it as easy as possible to debug my code when the only thing I have access to is the developer console and the stack traces present there.

In other words, is there anything I can do as a developer to improve the feedback I get when my app crashes in the wild? Maybe it's Google Analytics, maybe the Instrumentation classes, but there must be a better way to get more context to help me debug my app when I don't have access to the user or their device for debugging?

like image 510
RivieraKid Avatar asked Feb 03 '11 20:02

RivieraKid


2 Answers

You can also use ACRA http://code.google.com/p/acra/

like image 194
Tima Avatar answered Oct 06 '22 01:10

Tima


If you have some application logging turned on, then you can send those logs as well using http://code.google.com/p/android-remote-stacktrace/. This will give you invaluable context about what the user was actually doing in the period leading up to when the crash happened.

like image 44
btilly Avatar answered Oct 06 '22 01:10

btilly