How to resolve “Waiting for Debugger” message?

前端 未结 30 1978
眼角桃花
眼角桃花 2020-11-27 02:42

I have HTC Comet connected to Eclipse with SDK 2.2. I do a debug build - the application does not run; though it does get installed on the device. On the device I get this m

相关标签:
30条回答
  • 2020-11-27 03:11

    I used Task Manager to kill adb.exe to solve this problem. Adb.exe will automatically start after being killed.

    Killing adb.exe has solved a lot of problems related to debug and emulators for me so far.

    0 讨论(0)
  • 2020-11-27 03:13

    Rebooting the phone was the solution for me.

    0 讨论(0)
  • 2020-11-27 03:13

    Have read alot about this and the only solution that worked for me was to create a new project and then copy old project back into it.

    0 讨论(0)
  • 2020-11-27 03:15

    I also enounter this problem. In my environment, I use a tomcat as server and android as client. I found, If tomcat is started, this error " Launch error: Failed to connect to remote VM. Connection timed out." will occur. If tomcat is not run, adb works well.

    0 讨论(0)
  • 2020-11-27 03:15

    I had the same issue, fixed it by explicitly selecting desired device in debug configuration. Unfortunately, even after that log sometimes stops when debugger tries to connect. In this case in DDMS perspective find the desired process. It will be highlighted with green bug. Click stop and then debug it again.

    0 讨论(0)
  • 2020-11-27 03:16

    The Dialog Waiting for Debugger is shown if you are building a debug application or somewhere in your source code, you called Debug.waitingForDebugger();

    Inside Android Studio 2.0 and above, there is an option of Attach Debugger to Android Process. It is the last menu item in the Run menu.

    0 讨论(0)
提交回复
热议问题