- The Android Game Developer's Handbook
- Avisekhar Roy
- 262字
- 2021-07-14 10:28:59
Dalvik Debug Monitor Server
The Dalvik Debug Monitor Server (DDMS), whether it's accessed through the standalone application or the Eclipse perspective with the same name, provides handy features for inspecting, debugging, and interacting with emulator and device instances. You can use DDMS to inspect running processes and threads, explore the filesystem, gather heap and other memory information, attach debuggers, and even take screenshots. For emulators, you can also simulate mock location data, send SMS messages, and initiate incoming phone calls:

As the preceding screenshot shows, DDMS can primarily track, update, and display the following information:
- All running processes
- All running threads per process
- Consumed heap per process
- All log messages
On Android, every application runs in its own process, each of which runs in its own virtual machine. The debugger can be attached to the exposed port of VM. DDMS connects to adb on start. On successful connection, a VM monitoring service is created between adb and DDMS, which informs DDMS upon starting and ending a VM on the device. DDMS retrieves the VM's process ID via adb, and opens a connection to the VM's debugger when there is an active VM running through the adb daemon on the device. DDMS can now communicate to the VM using a custom wire protocol.
DDMS also listens on the default debugging port, called base port. The base port is a port forwarder, which can accept VM traffic from any debugging port and forward it to the debugger. The traffic that is forwarded is determined by the currently selected process in the DDMS Devices view.
- Flask Blueprints
- Apache Hive Essentials
- 算法精粹:經典計算機科學問題的Python實現
- 征服RIA
- Elasticsearch Server(Third Edition)
- Android Wear Projects
- Kotlin開發教程(全2冊)
- JavaScript程序設計(第2版)
- Hands-On GUI Programming with C++ and Qt5
- Spring 5 Design Patterns
- Docker:容器與容器云(第2版)
- Visual Basic語言程序設計基礎(第3版)
- Java高并發編程詳解:深入理解并發核心庫
- Getting Started with Web Components
- Go Systems Programming