Eclipse android project always lauching in debug

后端 未结 8 2275
再見小時候
再見小時候 2020-12-03 06:29

I feel silly asking this and even more silly to have this problem. I have a android project that has been executing fine until now.

but a couple of days ago, without

相关标签:
8条回答
  • 2020-12-03 07:04

    I'd tried everything on here and was surprised by the overwhelming acceptance of the top answer

    Restart the device

    then I realised, "this is a development phone, stop treating it like a business's server", and proceeded to restart.

    Worth risking an answer to endorse this solution as a last resort.

    My outcome- the app quickly, but quietly died. Result ! :(

    0 讨论(0)
  • 2020-12-03 07:13

    On the emulator, go to App Drawer, launch application "Dev Tools". Inside there, pick "Development Settings". Make sure that the field "Debug App" has value "(none)".

    0 讨论(0)
  • 2020-12-03 07:15

    Have you checked your run configurations menu? You might have some extraneous configurations in there that Eclipse is defaulting to when you choose to launch the project.

    Failing that, there is an option called "Launch in debug mode whenever the workspace contains breakpoints" in the Run/Debug -> Launching preference page. You might want to check to make sure that this option is not enabled.

    As a last resort when facing these kinds of quirks I will sometimes create a new project and copy over my source files (provided the project is not very large). Closing and re-launching Eclipse sometimes works wonders for me as well.

    0 讨论(0)
  • 2020-12-03 07:15

    As said above, the problem is with the device not eclipse.

    Restarting the device will work, but also killing the application thread/process in the DDMS will do the same job.

    0 讨论(0)
  • 2020-12-03 07:15

    My Eclipse version: Luna.

    My case: The option Launch in debug mode when workspace contains breakpoints is Never, but eclipse launches in debug mode.

    My Solution:

    • Go to Window->Preferences->Run/Debug->Launching.
    • Mark Prompt in option Launch in debug mode when workspace contains breakpoints.
    • Launch.
    • A dialog will popup: There are breakpoints enabled in the workspace. Would you rather launch in debug mode?
    • Check Remember my decision, then press No button, and problem resolved.
    0 讨论(0)
  • 2020-12-03 07:20

    I ran into the same problem these days, but none of the solutions above worked for me(except for factory reset, don't wanna do that for now).

    As Kennifer stated, problem is with the device since this happens only on my Zync Z5 phone (I have several other devices with Android on which app start in Run mode, not Debug mode).

    The only trick that worked for me was to delete the launch configuration every time wanted to run app after a debug, but it's annoying to do this every time I need a debug.

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