The debugging method of mobile-end real Machine

Source: Internet
Author: User

The most recent analysis of Web pages, performance differences on Android and iOS, in addition to the operating system itself, should be explored in more places, the first step is to analyze on the real machine. So summarize a few ways.

1.Mac + +iphone+ Lightning+safari Browser

Steps:

1) Use: Lighting line to connect Mac to iphone

2) iphone open Web Inspector (set->safari-> Advanced->web Checker)

3) iphone opens the page for analysis with Safari

4) Mac open Safari Browser (menu--development---the corresponding phone name--to debug the page), click to enter Safari Developer Tools

5) You can see the debug interface is like this

Disadvantage: Cannot debug the page inside the WebView

2. Android Phone + Android Data cable + PC

Steps:

1) Connect your phone to your computer with a data cable

2) mobile Phone open use debugging (Android different models to open the steps are not the same, do not know Baidu a bit)

3) Open Chrome, enter chrome://inspect/#devices, tick discover USB devices

4) Use mobile chrome to open the page you want to debug (if it is another WebView page, you need to configure the startup code in the app, the official tutorial)

5) Select the page you want to debug to enter

6) You can see that this is the Debug interface

Cons: Pro-Test, Mac debugging interface and Xiaomi 6 mobile phone interface often different steps, operation is very inconvenient, fortunately, the console still can see things normally

3.weinre

Steps:

1) can be directly npm install this module, and then launch, open the management interface can

2) Install the whistle directly, with the weinre. can also proxy different environments, specific tutorials see: https://avwo.github.io/whistle/rules/weinre.html

Cons: Can be said to be minimalist, simple steps, debugging simple, can be adjusted also simple (is to check the elements, see the console, not like the chrome analysis tools)

The debugging method of mobile-end real Machine

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.