Eclipse debugger can't connect to application for 2.3 (gingerbread) simulator
<p>I wrote an application using the API Level 9 and put my breakpoint in the onCreate() method. The simulator for 2.3 took a long time to start but eventually it was up and running. Then it just hung there. In the console this is what I saw:</p>

<pre><code>[2010-12-16 17:11:58 - MyProject] Android Launch!
[2010-12-16 17:11:58 - MyProject] adb is running normally.
[2010-12-16 17:11:58 - MyProject] Performing com.company.MyProject.MainActivity activity launch
[2010-12-16 17:11:58 - MyProject] Automatic Target Mode: Preferred AVD 'Android2.3' is not available. Launching new emulator.
[2010-12-16 17:11:58 - MyProject] Launching a new emulator with Virtual Device 'Android2.3'
[2010-12-16 17:11:59 - MyProject] New emulator found: emulator-5554
[2010-12-16 17:11:59 - MyProject] Waiting for HOME ('android.process.acore') to be launched...
[2010-12-16 17:12:50 - MyProject] HOME is up on device 'emulator-5554'
[2010-12-16 17:12:50 - MyProject] Uploading MyProject.apk onto device 'emulator-5554'
[2010-12-16 17:12:54 - MyProject] Installing MyProject.apk...
[2010-12-16 17:13:23 - MyProject] Success!
[2010-12-16 17:13:23 - MyProject] Starting activity com.company.MyProject.MainActivity on device emulator-5554
[2010-12-16 17:13:24 - MyProject] ActivityManager: [1]   Killed                  am start -D -n c...
[2010-12-16 17:15:05 - MyProject] emulator-5554 disconnected! Cancelling 'com.company.MyProject.MainActivity activity launch'!
[2010-12-16 17:15:44 - MyProject] ------------------------------
[2010-12-16 17:15:44 - MyProject] Android Launch!
[2010-12-16 17:15:44 - MyProject] adb is running normally.
[2010-12-16 17:15:44 - MyProject] Performing com.company.MyProject.MainActivity activity launch
[2010-12-16 17:15:44 - MyProject] Automatic Target Mode: Preferred AVD 'Android2.3b' is not available. Launching new emulator.
[2010-12-16 17:15:44 - MyProject] Launching a new emulator with Virtual Device 'Android2.3b'
[2010-12-16 17:15:45 - MyProject] New emulator found: emulator-5554
[2010-12-16 17:15:45 - MyProject] Waiting for HOME ('android.process.acore') to be launched...
[2010-12-16 17:17:10 - MyProject] HOME is up on device 'emulator-5554'
[2010-12-16 17:17:10 - MyProject] Uploading MyProject.apk onto device 'emulator-5554'
[2010-12-16 17:17:10 - MyProject] Installing MyProject.apk...
[2010-12-16 17:18:29 - MyProject] Success!
[2010-12-16 17:18:29 - MyProject] Starting activity com.company.MyProject.MainActivity on device emulator-5554
[2010-12-16 17:18:32 - MyProject] ActivityManager: [1]   Killed                  am start -D -n c...
</code></pre>

<p>Notice now my app is killed.</p>

<p>I made sure my eclipse plug-ins were up to date, and that the SDK packages were also updated.</p>

<p><strong>UPDATE 1</strong><br>
I have made some progress. The first time I start the simulator it never connects to the debugger. After the activity is killed, if I start the debugger a second time (without stopping the simulator), it seems to be connecting but not always. If it doesn't connect the second try, it never does in subsequent tries so I have to kill the simulator and restart it. It's still annoying as hell but at least now I have a workaround.</p>

<p><strong>Update 2</strong><br>
I have given up on this.</p>

<p>How can I diagnose this and fix it?</p>
