Eclipse Debugging Android doesn't work

自古美人都是妖i 提交于 2019-12-05 04:53:20

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.

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.

Restarting Eclipse and my device solved this problem for me.

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!