I'm using Eclipse 3.3 and Android 1.6. I installed DDMS on my Eclipse and tried to insert breakpoints as in tutorial https://www.ibm.com/developerworks/library/os-ecbug/ . However, as I run my project, the program won't stop when it reaches the breakpoint. Is there a bug in Eclipse or am I doing something wrong?
问题:
回答1:
To add to Amarghosh answer's, check also your JDK version.
There is a bug with JDK6_u14 et u15, which made your breakpoints "invisible" (the program would not stop during a debug session)
Fixed in the latest one JDK6u16.
回答2:
May be this is the problem:
However, as I run my project
Debug the project instead of running it. Select 'Debug' from the 'Run' menu or hit F11.
回答3:
If the breakpoint symbol/circle has a line going through it, it means you have the "skip all breakpoints" option selected. You can de-select it in the Debug view, under the "Breakpoints" section/box.
回答4:
My breakpoints haven't been working either. In my debug configuration on the Android tab, I had the launch action set to "Do Nothing". When I changed that to instead launch directly into an activity, my breakpoints started working.
回答5:
If you're trying to debug a service or widget you'll need to start an activity in order for the debugger to attach properly.