Why can't I debug in eclipse C++?

Why is debugger not attaching when trying to debug using android emulator and eclipse?

  • I can't debug any of my applications on my emulator, they all hang at "Application... is waiting for the debugger to attach. This wasn't a problem before. I have tried to debug apps that I programmed months ago and even those fail to be attached to the debugger. I have searched around and found common solutions to this problem such as: Using permission "android.permission.SET_DEBUG_APP" and having the application tag android:debuggable="true" found in this question Attaching debugger - android problem but after checking, found my apps already have these settings set. I have also made sure 'USB debugging' setting is checked under Settings>Applications>Development. I also always check new updates for eclipse. I think I started having this problem after an eclipse update. Has anyone found a solution to this issue? I have been working on a really cool app and been able to create the UI, but really need to be able to debug as I will be implementing things I haven't before and no debugging would be a major set back and slow me down.

  • Answer:

    I think you're in for the long haul, or, you might get lucky. This question has been covered in Stack Overflow multiple times, and unfortunately it seems where are many different solutions. It will be a process of isolation. See here: http://stackoverflow.com/questions/4375375/how-to-resolve-waiting-for-debugger-message

Eugene Van Der Merwe at Quora Visit the source

Was this solution helpful to you?

Other answers

I see that you have been checking for new Eclipse updates...have you also been updating the Android SDK tools?  When there's a new release of Eclipse ADT, often times you also have to update the Android SDK as well.

Kevin Tambascio

Dude its irritating. Just pause the debug when you are getting this error, and again resume your debug. it will work. after sometime your direct run will also work. Have fun.

Ravi Ranjan Lal

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.