Android real machine debugging method

Source: Internet
Author: User
1. Set the Android phone to USB debugging mode. Step: menu ---> Settings ---> Application Program---> Development, select [USB debugging] 2. Connect the mobile phone and computer with USB, and ensure the success. Step: Run C:/ADB devices in Windows to check whether the phone is successfully connected. 3. Set the application to debug mode. Operation: Edit androidmanifest. add the debugging parameter Android: debuggable = "true" in XML as follows: <application Android: icon = "@ drawable/icon" Android: Label = "@ string/app_name" Android: debuggable = "true"> 4. run the real machine debugging operation: In the eclipse debugging dialog box, select manual in the target window, click the debug button, select the real machine device, and start debugging. Note: whether or not the eclipse environment is enabled, any Android software can view the exception information in the command line window as long as an exception occurs on the real machine. Execute :. /ADB logcat can view more system exception messages. In these messages, check the caused by: header line, which specifies the line in which CodeError
Related Article

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.