Capture the Android app's log

Source: Internet
Author: User

Testing the software today, encountered a bug, because development said that there is no longer, so in order to better track this problem, we need to crawl the recurrence of the log. On the Internet to check the relevant information, combined with their own problems encountered, summarized as follows.

1. How to crawl Android app log

2. ADB server is an out of date.killing solution

3. How to successfully connect to an Android phone in eclipse

1. There are many ways to crawl the Android app log, just write the method you use

    • Installing the Android SDK
    • Open command Line
    • Go to the folder where the SDK is located and locate the Adb.exe folder, such as: C:\Program Files (x86) \android\android-sdk\platform-tools
    • Enter ADB logcat to determine if log can be correctly output

Refer to Http://www.doc88.com/p-891572811538.html

2. Encountering ADB server is out of date.killing issues

Refer to Http://jingyan.baidu.com/article/d621e8da0dee022865913fce.html

Mainly to ensure that the ADB port 5037 is not occupied, I myself because I opened 91 assistants, so occupy this port, need to close the 91 assistant or uninstall

In command-line cmd, you can view the command for the port condition:

    • ADB Nodaemon Server, see what the ADB's port number is, typically 5037
    • Netstat-ano | Findstr "5037" to view applications that occupy this port, close the app from Program Manager

3. How to successfully connect to an Android phone in eclipse

Tried to export the log with Eclipse, but never connected to the phone, then gave up. After checking some information, we found that the ADB port is still occupied by the problem. The solution was the same as the 2nd.

Refer to Http://jingyan.baidu.com/article/91f5db1bd6a2e11c7f05e32f.html

Successful export of log, and solve the problems encountered, or there are small achievements.

Because ADB logcat exports a lot of content, I cleaned up the previous cache before I grabbed the log, and I could use the command: ADB logcat-c

Then use the ADB logcat command to capture the corresponding log

Capture the Android app's log

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.