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