12

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?

5 Answers 5

37

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.

Sign up to request clarification or add additional context in comments.

Comments

12

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.

Comments

3

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.

Comments

3

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.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.