How to debug Android applications in the eclipse Development Environment

Source: Internet
Author: User

Summary: in the past. NetAndJavaApplication Development Process,DirectlyCodeBreak the breakpoint and followDedugTo directly debug the application.ProgramButAndroidThe application involves running devices.AndroidHow can I debug it during development? The following describes how to implement this problem.

 

Step oneCreateAndroidApplication,And run

 NewAndroid Project, After creation,CodingSource code to implement the application function.

After the application is implemented, clickRunIcon to run the application.

Step twoOpenDdms,Select the running application and enable the debugging function.

In the Action menu, selectDdmsIcon, and click to openDdmsPage

(Note:: DdmsFull nameDalvik debug monitor service, ProvideDalvikVirtual Machine debugging and Monitoring Service)

Select the application to be debugged and clickDebugIcon to debug the application

Step threeOpenDebugWindow, set the breakpoint, and debug

SelectDebugWindow button, Click ShowDebugWindow,

In the code window, select the code to be debugged and set the breakpoint. When an application on the simulator runs to a breakpoint, the application is interrupted and debugged.

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.