Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make eclipse debug my android PROJECT

I am writing an Android application using Eclipse. When I click on the project in the left tree view and then click debug, the IDE builds an APK and installs in the emulator / device as expected.

However, if I'm editing a file and forget to first click on the project before attempting to debug, the IDE thinks I want to debug that specific Java file. This is NOT what I want to do, I would like it to build and emulate / install on device as usual.

Is there any way to change this behavior in Eclipse?

like image 308
Jeffrey Meyer Avatar asked Feb 24 '11 16:02

Jeffrey Meyer


1 Answers

In eclipse, you can set in workspace preferences / run-debug / launching to always launch the previously launched application (until you explicitly choose an other application: then it will be the last that will be launched).

This way, no matter where you press (ctrl)F11 or click the debug/run button, the launch configuration you used the last time will be called again.

You will still be able to launch different applications of course, by explicitly calling their launchers (the way you debug now).

eclipse launch configuration

like image 86
rekaszeru Avatar answered Oct 12 '22 13:10

rekaszeru