Reputation:
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?
Upvotes: 12
Views: 25000
Reputation: 332
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.
Upvotes: 1
Reputation: 179
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.
Upvotes: 12
Reputation: 1313
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.
Upvotes: 3
Reputation: 1324178
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.
Upvotes: 3
Reputation: 59451
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.
Upvotes: 38