How to stop a program running under Eclipse?

前端 未结 9 1180
梦毁少年i
梦毁少年i 2020-12-23 02:55

I can\'t find an option to stop a running program (whether in debug or release mode).

So for now, I stop the program (returning control to Eclipse) simply by closing

相关标签:
9条回答
  • 2020-12-23 03:03

    Those who find it tedious switching between perspectives to stop the program (like I did), you can view the devices windows in your current perspective by selecting

    Windows > Show View > Other... > Android > Devices

    0 讨论(0)
  • 2020-12-23 03:04

    Add breakpoint to your code where you want to stop and then run it in Debug mode by pressing F11.

    0 讨论(0)
  • 2020-12-23 03:04

    See picture: 1. Click on DDMS; 2. Select current app; 3. Click on "Stop" enter image description here

    0 讨论(0)
  • 2020-12-23 03:08

    Keep in mind that on Android, programs generally only 'stop' if you finish() or the system destroys them when memory is required. Why stop at all? You do not need to stop to fix/re-install/re-test, for example.

    0 讨论(0)
  • 2020-12-23 03:14

    In the "Debug" perspective, select the root of the application under "Debug" (where the listing of active threads is) and click the stop button.

    0 讨论(0)
  • 2020-12-23 03:22

    Working for me.

    Windows -> Open perspective -> Other... -> DDMS

    1. In the Android view, on the left windows, you can see "Devices". There should be a list of applications that is running now (Emulator or physical devices). Click on the application you want to close. Normally the name is the name of the package + the name of the application
    2. Now click on the symbol of "Stop".

    To come back to the normal view, you just have to press on the Java button on the top right side. You can also do it pressing: Windows -> Open perspective -> Other... -> Java

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