Android Studio Learning notes-debugging and stepping

Source: Internet
Author: User

Take a look at the Debug configuration, you can debug multiple modules in a project, but there is only one module in this project ...

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/70/wKiom1dVMtDjuo0lAAClzbTGCzw700.png "/>




Set a breakpoint, just like Eclipse or Pycharm, and click on the outfit.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/70/wKiom1dVMtDC2EW6AAAhwtmcFVY703.png "/>

Then click Run Debug App

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/6F/wKioL1dVM9ag_HNvAAAMHR8mINE099.png "/>

The Debug window can see that 2 values have not been assigned a value

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/6F/wKioL1dVM9eBbC_PAACpKu4pjwI183.png "/>


Click to step in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/70/wKiom1dVMtGiFiuJAAAFXI8r5Fg754.png "/>

User name has been received

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/6F/wKioL1dVM9fDYZMNAAAX9rrRPYE216.png "/>

Continue with a few steps until you complete the assignment, you can step through the execution of each step of the script.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/70/wKiom1dVMtGAcQbAAAAcor6k4sk129.png "/>

Until the app display is running

Debugging is simple.

This article is from the "Hao (pcdog) blog" blog, make sure to keep this source http://433266.blog.51cto.com/423266/1786624

Android Studio Learning notes-debugging and stepping

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.