Androider
Androider

Reputation: 21345

Android How to Debug on PowerUp?

I am getting exceptions on device Powerup. My app starts on receiving boot intent. I would welcome any and all suggestions about how to debug on Powerup? When I just powerup the debugger is not attached by default. I am on sdk 2.1 and eclipse using adb debugger. Thanks.

Also if the debugger does not attach where exactly would I find the error message from the crash on the device? Which log file? Where exactly should I look for this?

Upvotes: 2

Views: 171

Answers (1)

anon
anon

Reputation:

I would recommend to take a look at this question. There it is explained how you can set a DefaultExceptionHandler that catches all uncatched exceptions in your application and then writes it to a file or send it to a server.

In your case, both solution are applicable.. If you write it to a file you can check this file after booting. If you send it to a server or email you the you just have to assure that the exception handler waits until network connection is available.

Upvotes: 1

Related Questions