Mobile app Debugging (Android)

Source: Internet
Author: User

Method One: Use chrome+ phone to debug.
1) Install Google's USB drive on your PC:
Http://developer.android.com/sdk/win-usb.html#top

2) Open the developer switch on the phone

3) Run the app on your phone (developed with Ionic or PhoneGap cross-platform scenarios. Need to be the development version, not the release version)
(Confirm that the phone and PC with USB cable connection, the first time the link, on the phone will pop up information, request Trust this PC)

4) on the PC, open Chrome browser and enter in the Address bar:
Chrome://inspect
You can see what's running so the app

Note:
* If you do not see, check whether the phone operating system Android 4.5 or above, the phone's USB drive is installed,
* * A simple way to install the driver is to install the "Kingsoft Phone assistant" such as mobile phone tools, it will automatically install the driver


Method Two: On the PC with chrome emulation to debug.
1) Open the app with Chrome
2) Press F12 to open the Debug interface
3) in the upper left corner of the debugging interface, click on the phone icon to enter the simulation status (note: Click it again to return to normal status)
At this point, the browser displays a black grid background.

4) in the top left-hand corner of the browser, select the device (including iphone and ipad) that needs to be emulated

Appendix:

* How to set up the first time for Android phone debugging?

1) How to open the "Developer Options" developer menu.

In the Settings>about phone, find the "build number" and click it 7 times in a row.

2) in the "Developer Options" (developer),

Turn on "USB Debug"

Mobile app Debugging (Android)

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.