Eclipse doesn't stop at breakpoints

前端 未结 30 2184
忘了有多久
忘了有多久 2020-12-13 08:13

Eclipse 3.5.2 is not stopping in breakpoints. It\'s as if the debugger is using an older version of the source file.

Tried the usual refresh, clean all projects, bui

相关标签:
30条回答
  • 2020-12-13 08:48

    Please un check this from the Eclipse Menu.

    Run->Skip all breakpoints.

    I think this will be enabled permanently once You select the Remove all Break points option in the Debug/Breakpoints window.

    0 讨论(0)
  • 2020-12-13 08:48

    If it doesn't stop even after unchecking SKIP ALL BREAKPOINTS, you can add this android.os.debug.waitfordebugger just before your breakpoint.

    If you do this,your app will definitely wait for debugger at that point everytime,even if you are just running your app,which it will only find when your device is connected to eclipse.

    After debugging you must remove this line for app to run properly or else android will just keep waiting for the debugger.

    0 讨论(0)
  • 2020-12-13 08:50

    I had a conditional break point wrongly put on the method entry point. Removed that breakpoint and it worked.

    Note: Tried Skip all Breakpoints, Clean all projects, Refresh, close Eclipse with no luck before nailing it.

    0 讨论(0)
  • 2020-12-13 08:52

    I use the Eclipse FileSync plugin for live remote debugging. Make sure you tick Allow different target folders & edit the Target folder file setting in the tree view.

    Setting the Default target folder by the Browse... button without Allow different target folders will set all folders to the same target (I had both libs & classes set to the default for libs so my breakpoints did not update).

    0 讨论(0)
  • 2020-12-13 08:53

    Performing a "Clean All" worked for me.

    Click on "Project" tab --> "Clean" menu-item.

    In the "Clean" dialogue-box select "Clean all projects" radio-button. Leave the remaining values as default. Click "OK" button.

    BINGO!!!The remote-debugging started working for me as beautiful as before.

    0 讨论(0)
  • 2020-12-13 08:54

    In my case I had to enable then disable an option in the Preferences. I don't prefer the debug view to keep jumping when a breakpoint is hit so I disabled this option, but caused the issue in question.

    The solution was to enable it again, start a debug session, the breakpoint is hit and shown in the UI, then disable again the option.

    Looks like a bug in Eclipse 4.17

    UPDATE

    There is also another simpler way that will make Eclipse show the debugging highlight at the breakpoint or rather refresh the debugging UI to work as it should. After the breakpoint is reached, Eclipse will ask you to switch to debugging mode if you are not already in, click switch button, then activate the debug tab/view, you will notice that the stepping buttons are activated and the breakpoint line is highlighted.

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