Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse runs debug mode even when I click "run"

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

Any ideas?

like image 790
saarraz1 Avatar asked Jun 23 '11 20:06

saarraz1


People also ask

How do I turn off run debugging in Eclipse?

You can disable the confirmation dialog in Eclipse's preferences: Window > Preferences > Run/Debug > Launching: uncheck "Prompt for confirmation when removing a configuration from the launch history".

How do I fix debugging in Eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead. Either actions mentioned above creates a new Debug Launch Configuration and uses it to start the Java application.

What is the difference between debug and run in Eclipse?

When you're debugging, Eclipse will stop at breakpoints and allow other debugging actions (view running threads, etc.). When you run, it won't. If you start by selecting "Run", you can later attach the debugger through the Device view. That will switch to "Debug" mode.

How do I disable debug mode in Java?

In the navigation view, choose Process Table. Select the relevant server process and, from the context menu, choose Stop Debug Session. In the Stop Debug Session dialog box, choose the debug entry for which you want to disable the debug mode.


3 Answers

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

like image 137
Paul Carff Avatar answered Oct 03 '22 02:10

Paul Carff


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.

like image 38
user1978019 Avatar answered Oct 03 '22 03:10

user1978019


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

like image 44
Jimmy Avatar answered Oct 03 '22 04:10

Jimmy