如何使用监视器(DDMS)工具调试应用程序
这些天,我将开发环境从Eclipse切换到Android Studio。我真的很喜欢它的自动补全功能以及此IDE提供的许多其他功能。但是,在调试时会遇到一些问题。
I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging.
我希望使用此IDE提供的Monitor工具,自包含的DDMS和非常漂亮的可视界面来跟踪内存使用情况,线程状态等。但是我找不到一种方法可以使用必须创建的断点来逐步支持(编辑器中的红点)。
I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor)
我只能逐步进行操作通过不打开此监视器进行调试。因为当我在调试器运行时尝试使用Monitor时,它将弹出一个窗口,要求我首先断开ADB的连接。我也找不到从Monitor启动应用程序的地方。
I can only do step by step debug by not open this Monitor. Since when I try to use Monitor while the debugger is running, it will popup a window asking me to disconnect the ADB first. I also can't find a place to start the application from Monitor.
有没有一种方法可以在Android Studio中同时使用Monitor的同时进行逐步调试?
Is there a way to do step by step debug while using Monitor at the same time in Android Studio?
转到
工具> Android> Android设备监视器
Tools > Android > Android Device Monitor
在v0.8.6中。