如何使用 Eclipse 逐行调试 Android 应用程序? [英] How to Debug Android application line by line using Eclipse?
问题描述
我熟悉 VS.Net IDE &它对调试有很多支持.但是安卓开发对我来说是新鲜事物.我正在使用 Eclipse IDE.我想知道如何像在 .Net IDE 中那样逐行调试 android 应用程序?
I am familiar with VS.Net IDE & it has a lot of support for debugging. But the android development is something new for me. I am using the Eclipse IDE. I was wondering how to debug the android application line by line just like we can do in .Net IDE?
目前我正在使用日志窗口,但我对此并不满意.我需要专家们的建议,使用 Eclipse 调试 Android 应用程序的最佳方法是什么?
Currently i am using the log window, but i am not happy with it. I need suggestion from the expert guys, what is the best way to debug the Android application using Eclipse?
非常感谢您的宝贵时间&帮助.
Great thanks for your valuable time & help.
推荐答案
要么通过右键单击项目并选择
Debug As
->Android Application
来启动应用程序,要么通过正常运行然后在DDMS 透视图中选择设备窗格中正在运行的应用程序,然后单击绿色错误.
either start the app by right clicking on the project and select
Debug As
->Android Application
or by running it normally and later in the DDMS perspective select the running app in your devices pane and click on the green bug.
一旦遇到断点,您就可以跳过(f6
)或步入(f5代码>)(查看运行菜单以获取更多命令).
once a breakpoint has been hit you can step over (f6
) or step into (f5
) (check the Run menu for more commands).
这篇关于如何使用 Eclipse 逐行调试 Android 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!