5

Possible Duplicate:
Eclipse Error: “Failed to connect to remote VM”

When I debug my application I get frequently Launch error: Failed to connect to remote VM even If I try again it doesn't help, I need to restart Eclipse.

Edit
Not sure yet fully if the symptoms have to do with the fact that I get this error only when I launch Debug without a code modification. Whenever I do a modification to the source code and hit Debug it goes through, but if I don't it doesn't.

Community
  • 1
  • 1
Pentium10
  • 204,586
  • 122
  • 423
  • 502
  • Is this a real device connected via USB or an AVD? If a real device, are you also using the USB to transfer files? – RickNotFred May 11 '10 at 21:49
  • As in my tags, this is a real device. The USB is used for my Eclipse connection, I don't know what you mean if I use to transfer files. I can't see sdcard while connected to Eclipse. – Pentium10 May 11 '10 at 21:57
  • Sorry for the incorrect answer (on the emulator side): deleted – VonC May 11 '10 at 22:29
  • Fails frequently for me on the emulator. The emulator side has "Waiting for Debugger"... waiting for debugger to attach. Oddly, there are dozens of Internet chat board posts about this. – Charles Merriam May 29 '10 at 00:30
  • And have you found a solution? – Pentium10 May 29 '10 at 04:51
  • Not I. It appears to be related to the error when the IDE complains that it cannot hotswap code. That is, I notice it has not happened in any session where I have not received the complaint. – Charles Merriam May 29 '10 at 16:34

2 Answers2

2

I think this is a bug in the eclipse plugin, just make a modification to the code and it will work.

fedj
  • 3,452
  • 1
  • 22
  • 21
1

I solved this problem by resetting ADB in eclipse. Try the following:

  1. Disconnect the device from USB.
  2. Select the DDMS Perspective in Eclipse.
  3. On the Devices tab of the perspective, select the menu then reset ADB.
  4. Reconnect the device.
meteorman
  • 11
  • 2