使用DDMS + Android的暴民调试 [英] Using DDMS + Android Mob for debug
问题描述
我是想我的手机在安装后运行我的新的应用程序,而是我能读到这 -
I was trying to run my new app after installing it on my mobile but instead i get to read this-
The Application MyApp has stopped unexpectedly.Plz try again.
google搜索了一段时间后,我才知道我可以使用DDMS调试我的应用程序,所以我连我的Android手机上运行使用OS 2.2.2在我的Windows lappy上DDMS但多远我可以走了。
After googling for some time i came to know i can debug my app using DDMS, so i connected my Android Mobile running with os 2.2.2 with ddms in my windows lappy but that how far i can go.
现在我想知道我可以检查哪些步骤,我的应用程序的code是造成这个问题的结果
所以PLZ提供有关如何做到这一步一步的指导。
Now I want to know how i can check which step in my application's code is causing this problem
so plz provide step-by-step guide on how to do that.
推荐答案
首先选择调试的角度为:
然后设置断点是在地方,你想要的:
Then set Breakpoints at places you want:
之后,创建通过调试配置的调试AS->调试配置... ,然后调试为 Android应用程序,如下图所示:
After that create a Debug configuration via Debug As->Debug Configurations... and then Debug as Android Application as shown below:
然后在Debug透视图,你可以通过pressing F8 跟踪/所需变量的值表:
就是这样,你也可以通过前pressions 查看评估前pressions。如果未启用,从选择它:
窗口 - >显示视图 - >其他 - >调试 - >防爆pressions 。
Then in Debug perspective you can trace/watch value of your desired variable by pressing F8: That's it, you can also evaluate expressions through Expressions view. If it is not enabled select it from: Window->Show View->Other->Debug->Expressions.
这篇关于使用DDMS + Android的暴民调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!