title: How to debug BOOT_COMPLETE broadcast receiver's "Force Close" crashes?
body: <p>Since the phone restarts and thus gets disconnected from the Eclipse debugger/LogCat while it's booting up, how do I see where my boot complete broadcast receiver is crashing?</p>
  
  <p>I am performing some actions in the onReceive() of my 
      public class BootCompleteReceiver extends BroadcastReceiver {
      ...
      }</p>
  
  <p>This is crashing and popping up a force close dialog when the phone boots. How do I debug this and see where the problem is? </p>
  
  <p>The question holds true for debugging any <code>BOOT_COMPLETE</code> broadcast receivers.</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Yes, we can see the system logs in LogCat as the phone is booting up but my app Log.d(TAG,"Boot completed") has to wait till it (onReceive) gets triggered but by that time the app crashes because the problem is somewhere in the receiver itself. The app crashes before I can log anything. Also, I cannot use "Run in Debug mode" for a phone that's restarting...</p>