Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 :)

like image 547
Salv0 Avatar asked Jan 06 '11 16:01

Salv0


2 Answers

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.

like image 65
Erich Douglass Avatar answered Oct 21 '22 04:10

Erich Douglass


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.

like image 39
er0ck Avatar answered Oct 21 '22 05:10

er0ck