[android-developers] Re: Debug Boot complete Broadcast event on phone
You can call waitForDebugger() at the beginning of the function to give yourself a chance to attach the debugger: http://code.google.com/android/reference/android/os/Debug.html#waitForDebugger() On Mon, Dec 1, 2008 at 4:23 AM, mnj [EMAIL PROTECTED] wrote: Hi, I have a class BootTest which extends BroadcastReceiver. I want to put a breakpoint in onReceive method and debug from Eclipse IDE when phone(G1) boots up. What I observe is that the onReceive() method is getting called but the control is not coming to the breakpoint. Probably the debugger is not yet connected when BOOT_COMPLETE event is received. This is just my guess. Has anyone of you tried debugging such scenario where a receiver is waiting for BOOT_COMPLETE event. Thanks, Manoj -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debug Boot complete Broadcast event on phone
Thanks. it's working now. On Dec 2, 1:02 am, Dianne Hackborn [EMAIL PROTECTED] wrote: You can call waitForDebugger() at the beginning of the function to give yourself a chance to attach the debugger: http://code.google.com/android/reference/android/os/Debug.html#waitFo...() On Mon, Dec 1, 2008 at 4:23 AM, mnj [EMAIL PROTECTED] wrote: Hi, I have a class BootTest which extends BroadcastReceiver. I want to put a breakpoint in onReceive method and debug from Eclipse IDE when phone(G1) boots up. What I observe is that the onReceive() method is getting called but the control is not coming to the breakpoint. Probably the debugger is not yet connected when BOOT_COMPLETE event is received. This is just my guess. Has anyone of you tried debugging such scenario where a receiver is waiting for BOOT_COMPLETE event. Thanks, Manoj -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---