BreakPoints not being hit?
I have been running and debugging my android app for quite a while now. All of a sudden I many of the break poi开发者_StackOverflow中文版nt I am setting are not being hit. I know the code is executed because of log messages. I have noticed that once the breakpoint is passed for the first time eclipse adds a little check mark next to it..
I have tried rebuilding, cleaning and reopening eclipse... Noting helped..
Does anyone know how to solve this?
Haha it's silly. My co-worker had the same problem when she showed me the top answer for this post. I am not sure how this happens or if this is what happened with you but if you click on the "Run" menu, you will see that "Skip all breakpoints" has a check on its left. Uncheck that and you are good to go.
In eclipse, is the breakpoint marker a filled circle or an open circle? Try right-clicking on the breakpoint marker and click "Toggle Breakpoint" to enable it if it disabled, which is the only explanation I can think of.
Problem solved by removing android:process=":remote"
from the debugged code temporarily.
I'm not sure if this is your solution, but this occasionally happens to me when my project has stopped building correctly after adding some code. You can check to make sure there are no Java project build problems by going into the menu options 'Windows' => 'Show View' => 'Markers' and check for 'Java Problem' errors.
You can also attempt to close Eclipse and re-open the application, I've had many strange Eclipse bugs remedied by an application or system restart.
精彩评论