Depurador de Eclipse: no funciona de repente (esperando el depurador para siempre)

I have coded Android by Eclipse IDE for such a long time. However Eclipse is working fine, and can not debug suddenly. The message is "... is waiting for debugger to attach." and keep that screen forever. I have tried to add android.permission.SET_DEBUG_APP to Manifest file but nothing is changed.

I realize that in Log cat mentioned "waiting for debugger at port 8100" while in console, the message is "Attempting to connect .... port 8609". Anything's wrong with this?

Ayudame por favor. Gracias.

preguntado el 27 de noviembre de 13 a las 02:11

3 Respuestas

Several ways to get around this:

  • Unplug then plug in again usb-cable ( if you're connecting with usb port)

  • Reiniciar el dipositivo

  • Restart java

I've met this case so many times and still have no idea why, but after doing some above tricks, it works :o really weird Android :(

respondido 27 nov., 13:02

I have tried to restart java, restart my computer also. :(. It does not work also. And all of my project do not run debug ( run application is ok, but debug is not) - ndnguyen

@ndnguyen try to kill adb (./adb kill-server command ) and restart your device ? - toantran

Thanks. It works after removing or restarting thing many times. - ndnguyen

Once try to clean the project, open the project in debug view, check once the breakpoints and try to debug again. If not restart the eclispe once. Hope this helps

respondido 27 nov., 13:02

Run debug app once then again try using run app...this will do.

Respondido el 15 de diciembre de 14 a las 11:12

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.