Debug your Android browser in Chrome

Source: Internet
Author: User

Recently you need to use Chrome Developer Tools to debug your Android browser, but the official guide is not very good, after some toss, finally debugging success, here to share the experience to the needs of friends.

Chrome Developer Tools is an essential tool for front-end engineers, and it greatly improves the efficiency of our development and commissioning. In the era of mobile development, we also have to master the way mobile browsers debug in Chrome. This article only describes Android.

Environment

There may be some differences between different environments, and my environment is:

    • Windows 10
    • Computer Chrome 50.0.2661.75 m
    • Galaxy Node 3
    • Android 5.0
    • Mobile Chrome Dev 51.0.2704.10 (downloaded from pea pods)
Installing USB Driver

The first thing to install is the USB drive, although most operating systems can now automatically install the driver to identify the phone, but if you want to use to connect computer debugging, or you have to manually install one, I installed: Samsung andorid USB Driver for Windows

Other devices can also be found here for the corresponding driver: OEM USB Drivers

Start the developer mode on your phone

Go to Settings and find developer mode. But Android 4.2 after the machine, the developer mode is hidden, need to find the Build number on the device, the Chinese counterpart may be "build", find it crazy point, after a while will be prompted to open the developer mode.

Connect your phone and computer

After connecting, if the phone box asks whether to allow Debug, click Allow, you can skip the following steps to install ADB Server and go directly to the final step.

If there is no frame on the phone, probably does not start the ADB Server, please look down.

Install ADB Server

ADB is the abbreviation for Android Debug Bridge and is a tool in the Android SDK Platform-tools. Based on the guidelines on this stackoverflow, you can only install single ADB package. But I had some problems, so I installed the entire Android Studio, and maybe I want to develop an Android app later.

Start ADB Server

I was installing Android Studio directly, so I found the address of the ADB based on the StackOverflow answer: C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\adb.exe

Run in cmd

CD C:\Users\<Insert username here>\AppData\ Local\Android\SDK\Platform-toolsadb start-  Server                  

Can.

Tips: After restarting the computer, if you need to debug again, you have to do it again adb start-server .

Debug in Chrome

Open the chrome on your computer, enter it in your browser, and then chrome://inspect tick Discover USB devices to see the page open on your phone's chrome.

Clicking Inspect will open a Chrome Developer Tools page in a new window, which you can debug.

Tips: Native browsers on your phone also support debugging in Chrome, but you don't see a preview.

Tips: The Chrome Developer Tools page that opens on your computer is generated based on the chrome version on your phone, so it might be a little different from the pages on your computer.

Here I have a problem,www.90168.org mobile Phone If the installation is Chrome, then a little inspect in the computer will be a flash. Then it was good to have Chrome Dev installed on your phone. It's not clear where the problem is.

Finally, a successful one!

Debug your Android browser in Chrome

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.