23

Eclipse always starts my app on debug mode even though i click the regular "run" button...

Any ideas?

saarraz1
  • 2,999
  • 6
  • 29
  • 44
  • It'd be useful to know versions of Eclipse, the Google plugin, your device, and the OS you're using. – James Moore Aug 08 '11 at 23:19
  • Just happened to me too. Eclipse Indigo SR1 20110916-0149, ADT 15.0.1.v201111031820-219398, Xperia X8 Android 2.3.7 (GingerDX v020), Windows 7 x64 SP1. Device reboot helped. It seems that this problem occured when I accidently double- or triple-clicked debug icon in Eclipse... I couldn't reproduce it tho. – YRH Dec 07 '11 at 14:44
  • 2
    Restarting the Android device is the only thing that works. – Heshan Perera Jul 09 '12 at 08:26
  • having this issue also. None of the solutions listed here worked. Running Juno... – Patrick Jackson Oct 17 '12 at 23:38
  • This answer helped me [Eclipse android project always lauching in debug][1] [1]: http://stackoverflow.com/questions/4342588/eclipse-android-project-always-lauching-in-debug – André Herculano May 28 '13 at 08:52

5 Answers5

24

I found that I had to reboot my Xoom to get it to work properly again.

Paul Carff
  • 316
  • 2
  • 4
4

When this happened to me I found that I had left a call to android.os.Debug.waitForDebugger() in the code, which was causing the debugger to attach. Removing those calls fixed the problem.

user1978019
  • 3,008
  • 1
  • 29
  • 38
3

try to select Run -> Remove All Breakpoints, and run your project again

Jimmy
  • 31
  • 2
  • Welcome to SO. The question is saying that is not clicking the Run Debug button. So how Remove All Breakpoints should affect it? – Tony Rad Nov 12 '12 at 23:26
0

Use the perspective DDMS , and run your app, and then , you will see the icon of debugging in the process of your app , uncheck it and it will work ;

if id didn't work , open the perspective Debug ,then, disable all the breakpoints , and it will work

Houcine
  • 24,001
  • 13
  • 56
  • 83
  • if it doesnt work , try the second solution : disable all breakpoints in the Debug Perspective – Houcine Jun 24 '11 at 13:12
  • they are already disabled. BTW i discovered that it only happens to me with this project. and it happens even if i set 'debuggable' to false or if i even export and sign the application! It always attempts to connect to the debugger. – saarraz1 Jun 24 '11 at 13:18
  • Sorry @Houcine, doesn't work for me either. I'm seeing the same problem. Rebooting the Galaxy Tab I'm using solved the problem for me, but it looks like it's a bug. – James Moore Aug 08 '11 at 23:21
0

Restart Eclipse and the emulator. That always works for me.

Haphazard
  • 10,900
  • 6
  • 43
  • 55
  • Does destroying the emulator and creating a new one still show the problem? (FYI, it's not limited to the emulator; I'm seeing the same thing on a Galaxy Tab 10.1, Android 3.1) – James Moore Aug 08 '11 at 23:22