How to use Monitor (DDMS) tool to debug application

后端 未结 6 1519
感动是毒
感动是毒 2021-01-31 07:17

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 h

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 08:00

    Could it be a problem with past preview versions of Android Studio ? nowadays "beta" has replaced the "preview". I try it out step by step debugging while using Memory Monitor at same time by Android Studio (Beta) 0.8.11 on OSX 10.9.5 without any problems.

    The tutorial Debugging with Android Studio also helps, specially this paragraph :

    To track memory allocation of objects:

    1. Start your app as described in Run Your App in Debug Mode.
    2. Click Android to open the Android DDMS tool window.
    3. On the Android DDMS tool window, select the Devices | logcat tab.
    4. Select your device from the dropdown list.
    5. Select your app by its package name from the list of running apps.
    6. Click Start Allocation Tracking Interact with your app on the device. Click Stop Allocation Tracking

    Here a couple of screenshot while debugging step by step on a breakpoint a monitoring the memory on the emulator:
    breakpointmemory monitor

提交回复
热议问题