Eclipse Debugging Android doesn't work

别说谁变了你拦得住时间么 提交于 2019-12-07 01:29:21

问题


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


回答1:


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.




回答2:


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.




回答3:


Restarting Eclipse and my device solved this problem for me.




回答4:


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.




回答5:


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



来源:https://stackoverflow.com/questions/4617062/eclipse-debugging-android-doesnt-work

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