How to resolve “Waiting for Debugger” message?

前端 未结 30 1980
眼角桃花
眼角桃花 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:21

    Some devices will only let the debugger attach if the application has the android.permission.SET_DEBUG_APP permission set in its manifest file:

    <manifest>
      <uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission>
    </manifest> 
    
    0 讨论(0)
  • 2020-11-27 03:21

    I get this if I switch the usb cable to a difference port on my PC, odd but it works when I switch it back again. Also I think I've got this when there's been another device or emulator running at the same time, or two instances of Eclipse open.

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

    I was also having the same problem when using Android Studio and GenyMotion. I am able to solve this problem by pausing the program and resuming it again after "Waiting for debugger" message is shown. It may work while using other IDEs and emulators as well.enter image description here

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

    Closing the emulator and closing eclipse. Reopening Eclipse and starting the simulator worked for me.

    The key thing to look for is in the Devices pane of Eclipse. If you start the emulator or device and it shows up in the device name list but says [null] and no running processes show beneath it, then it won't work correctly with loading your app into it.

    If the name of the device comes up and is Online then things seem to work smoothly.

    Don't know why it doesn't work out all the time though.

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

    I end up going into "Debug" perspective.

    Then in the "Debug" frame, there are debug list or running list.

    You have to decide which one is your current one that has this problem (Waiting for debug...)

    Then do right-click and choose "Terminate and Remove".

    Then you try to run again. And that warning box will be gone.

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

    Rebooting the PC was the only thing that worked for me. It worked when I had this problem with an Android 2.2 phone, and also an Android 3.1 tablet.

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