Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Monitor (DDMS) tool to debug application

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.

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)

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.

Is there a way to do step by step debug while using Monitor at the same time in Android Studio?

like image 685
Arthur Wang Avatar asked Feb 21 '14 22:02

Arthur Wang


People also ask

How do I debug with DDMS?

In the DDMS perspective, choose the emulator instance you want to call. On the Emulator Control tab, navigate to the Telephony Actions section and input the incoming number (for example, 5551212). Select the Voice radio button. Click the Call button.

How do you use DDMS?

Running DDMS DDMS is integrated into Android Studio. To use it, launch the Android Device Monitor, and click the DDMS menu button. DDMS works with both the emulator and a connected device. If both are connected and running simultaneously, DDMS defaults to the emulator.

What is DDMS and what can you do with it?

Android ships with a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information, incoming call and SMS spoofing, location data spoofing, and more.


1 Answers

Go to

Tools > Android > Android Device Monitor

in v0.8.6. That will pull up the DDMS eclipse perspective.

how to open

like image 152
kgibilterra Avatar answered Sep 28 '22 03:09

kgibilterra