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
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.