"Xamarin Poach Series: View Debug Monitor for device/simulator"

Source: Internet
Author: User

Sometimes we need to look at the files in the simulator, such as the file IO operation, the operation of SQLite database, etc. How do we export the content when we want to view the content? Because Android is a Linux kernel, its files are organized in a way that follows Linux.

In the Linux system, all the device data block directory Shortcuts files are organized in a file, right, in Linux, all of them are files!

The root of the file roots, organized in inverted tree form. Each file is a node of the tree. (familiar with the Linux friends, should all know the file of soft link hard links .....) )。

Now that you have organized your files in a well-arranged way, you can quickly find the location of the files. So, using the Android Development Debugging tool DDMS, the listening device for file monitoring is very good. But iOS is not the same. All apps on the iOS system are running in the security sandbox.

You cannot view the specifics of a file (or not at all, just need to break the limit).

DDMS

Official Introduction: http://developer.android.com/tools/debugging/ddms.html

How the DDMS works
DDMS will build a link between the IDE and the test terminal (Emulator or Connecteddevice), which uses their own independent port to monitor the debugger's information, DDMS can monitor the connection of the test terminal in real time. When a new test terminal is connected, DDMS will capture the ID of the terminal and set up a debugger through ADB to achieve the purpose of sending instructions to the Test terminal.

Mainly used to monitor the simulator:

Ddms a bridge for the IDE and Emultor, the real Android device. Developers can see the process running on the target machine/off-the-shelf state through DDMS.

Can be Android screen to the development machine,

You can see the heap information for the process,

Can view logcat information,

You can view the process allocation memory situation,

You can send text messages and phone calls like a target machine.

You can send geo-location information like Android development.

You can debug a process like GDB attach.

The full version of DDMS is available under the SDK Tools directory, and can be run directly. The following is an example of Eclipse's DDMS perspective, which provides a brief introduction to DDMS functionality.

The following from the Internet, feel the basic operation are introduced. Just a few scans:

Http://www.cnblogs.com/wikity/archive/2011/12/17/2291357.html

Http://www.jb51.net/article/36668.htm

"Xamarin Poach Series: View Debug Monitor for device/simulator"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.