如何使用 Monitor (DDMS) 工具调试应用程序 [英] How to use Monitor (DDMS) tool to debug application
问题描述
最近我将我的开发环境从 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 中.这将拉出 DDMS eclipse 透视图.
in v0.8.6. That will pull up the DDMS eclipse perspective.
这篇关于如何使用 Monitor (DDMS) 工具调试应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!