Debug your phone page (iOS and Android) via Chrome browser

Source: Internet
Author: User

When developing a PC page, using Chrome's developer tools, you can easily capture the DOM elements of the page and modify the style to facilitate debugging, but the phone is cumbersome because there is no way to open the developer tool to view the elements directly. Can actually be detected by connecting the device to the PC using the PC's developer tool

First, for Android devices

1. Start the developer mode on Android devices

2. Connect the device to the PC and enter it in the Chrome browser address bar: chrome://inspect/#devices

3, when the Web page opened on the phone, Chrome will detect the Web page, you can directly debug

Second, for iOS devices

PS: If you are using a Mac computer, you can find it directly in Safari development, my iphone can detect the page

1, in the iphone settings-"safari-" Advanced-"Web Inspector." Open it

2. Install Ios_webkit_debug_proxy and Remotedebug IOS WebKit on your computer Adapter

3. Start Remotedebug IOS WebKit Adapter

Remotedebug_ios_webkit_adapter--port=9000

4, in the Chrome address bar input: chrome://inspect/#devices, in the Discover network targets inside add localhost:9000, you can debug the phone page in Chrome

Debug your phone page (iOS and Android) via Chrome browser

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.