How to set up Android in real-machine debugging

Source: Internet
Author: User

1. Set the android phone for USB debug mode. Steps: Menu---> Settings---> Application---> Development, select "USB Debugging"

2. Connect your phone and computer with USB and make sure it is successful. Step: Perform C:\ADB devices under Windows to see if the phone is connected successfully.

3. Set the application to debug mode. Action: Edit androidmanifest.xml Add debug parameter Android:debuggable= "True", as follows:

<application android:icon= "@drawable/icon" android:label= "@string/app_name" android:debuggable= "true" >

4. Perform a real-machine debug operation: In the Eclipse Debug dialog box, select Manual in the target window, click the "Debug" button, select the real machine device, and start debugging.

Note: Regardless of whether the eclipse environment is enabled or not, any Android software that has an exception running on the real machine can be viewed under the command-line window for specific exception information:

Execution:. \adb Logcat can see more system exception messages. In these messages, be careful to look at caused by: lines that indicate which line of code is wrong

Reference: http://www.codes51.com/article/detail_94421.html

How to set up Android in real-machine debugging

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.