Salv0
Salv0

Reputation: 1077

Eclipse Debugging Android doesn't work

HI all. I have a problem with Eclipse, debugging an android application: all breakpoints I place doesn't work ( the applications doesn't stop. They are skipped as not placed ). There's a way to make them work?

I have Win7, JDK 6u23 64bit, Eclipse 3.6 64bit, all breakpoints are enabled ( skip isn't selected ).

Thanks in advance for the answers :)

Upvotes: 7

Views: 11912

Answers (5)

Qing PAN
Qing PAN

Reputation: 21

I use Eclipse Luna with ATD plugin. When I tried to add android:debuggable="true" in <Application> of my App's Manifest.xml, I got a compile error Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assigned one.

Finally, I found how to activate breakpoints, I should just press the Debug button (the ’bug‘ icon).

Upvotes: 0

wkrueger
wkrueger

Reputation: 1373

Solved a similar problem today.

Turns out I have disabled an Eclipse option on which the debug window is automatically shown after starting debug (that was annoying to me).

I have to manually focus the Eclipse debug window once in a session (while debugging) in order for the debug buttons (play/pause/etc) to become active. That was automatically done before.

Upvotes: 0

Henk Kleynhans
Henk Kleynhans

Reputation: 1

Restarting Eclipse and my device solved this problem for me.

Upvotes: 0

er0ck
er0ck

Reputation: 113

old question, but i've never found my answer anywhere else. Mawg's comment to OP held some clues to my answer.

for me, "skip all breakpoints" was enabled by default (windows7 64bit, adt pluggin 2.22).

i had to go into the Breakpoints tab in the debug perspective to find this. i dont' think it's shown in DDMS. skipping breakpoints is separate from the checkmarks, which, i believe, is the same as "enabling" a breakpoint. i'm not sure why there is a distinction.

i'd post a pic of a skipped breakpoint but i don't have 10 rep yet. it's the blue circle, but with a "\" through it.

Upvotes: 4

Erich Douglass
Erich Douglass

Reputation: 52002

Does the thread list show up in the Debug perspective when you start the app? If not, then Eclipse's debugger is not property attached to the phone/emulator.

Make sure you have android:debuggable=true in the Manifest. The latest version of the Eclipse ADT plugin should do this for you, but I've seen a few cases where it didn't work as I expected.

Upvotes: 15

Related Questions