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
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.
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.
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.
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).
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.
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.