Two. weinre Debug IOS Hybrid APP

Source: Internet
Author: User

1. Installing Weinre

NPM install–g weinre

2. Open

Weinre-httpport 8080-boundhost-all-

Httpport Listening Port

Boundhost Binding Host

eg.

Weinre-httpport 8080-boundhost 172.16.144.11

The message will appear after success ( do not turn off cmd)

C:\users\xxxxx>weinre-httpport 8080-boundhost 172.16.144.11
2014-12-11t03:34:11.827z weinre:starting Server at http://172.16.144.11:8080

chrome visit http:// 172.16.144.11:8080

4. target script added to the appindex.html page. (You can use Itools to export the HTML page of the app you want to debug and then import)

<script src= "Http://172.16.144.11:8080/target/target-script-min.js#anonymous" ></script>

5.Chrome access to http://172.16.144.11:8080/client/#anonymous can debug the page. (may be a little slower, need to wait a while)

6. Mobile app to set agent to native. This machine opens fiddle

Two. weinre Debug IOS Hybrid APP

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.