How to debug HTML pages on a mobile side

Source: Internet
Author: User

Weinre this method.

1. First you want to install Nodejs, to be installed in a low version, the latest version of the installed weinre will not fit. Here to a

Https://nodejs.org/dist/v0.10.20/node-v0.10.20-x86.msi

2. Then NPM commands

NPM install-g weinre

3. Running Wernre

Weinre--httpport 8081--bounhost-all-

Enter the localhost:8081 above in the browser

4. You will see an interface like this

Copy a section inside the red box and insert it into the HTML page you want to debug.

5. Next find your weinre's installation directory,

Such as:

Create a new www directory,

Put the Debug page in this WWW directory,

Mobile Access: localhost:8081/www/index.html

Another way to debug:

Installing anywhere is simpler and easier than the above.

NPM Install Anywhere-g

Once installed, the cmd command enters the directory where you want to debug the HTML page, running anywhere


 

How to debug HTML pages on a mobile side

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.