如何使用监视器(DDMS)工具调试应用程序 [英] How to use Monitor (DDMS) tool to debug application

查看:124
本文介绍了如何使用监视器(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中。

这篇关于如何使用监视器(DDMS)工具调试应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆