Friday, April 27, 2012

Re: [android-developers] How to debug Service/BroadcastReceiver and prevent Watchdog from killing process when stepping through the code?

Make a Handler and post the processing logic to it as a runnable.

You will still get the ANR which you can ignore, but the process won't be killed.

-- K

28 апреля 2012 г. 1:09 пользователь Justin Anderson <magouyaware@gmail.com> написал:
AFAIK there isn't... But if I'm wrong, I would love for someone to point out how to do it as well!

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Fri, Apr 27, 2012 at 2:46 PM, Streets Of Boston <flyingdutchie@gmail.com> wrote:
I'm debugging on a device.

When setting a breakpoint in a process that runs a Service or a BroadcastReceiver on a spot in the code that is run on the main (UI) thread, the phone's watch-dog service kills the process, because I'm stepping through the code slowly. 

Is there a way, when in debug-mode, to stop the watch-dog service from killing the process that i'm debugging? 
It is very annoying when this happens or any debugging must be done very quickly (no more that 10 seconds total). 

Thanks!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate