Weinre is a web-based Inspector (Webkit) remote Debugging tool, with the help of the network, can directly debug on the PC running on the mobile device on the remote page, Chinese meaning is the remote Web Inspector, with the Weinre, On the PC, the html/css/javascript of the target webpage can be changed instantly, the debugging process can display the preview effect of the page on the mobile device in real time, and display the error and warning information of the device page synchronously, can view information of network resource, but Weinre does not support breakpoint debugging. The project is currently part of the Apache Cordova.
weinre System SupportIOS 3.1.3 or later does not support WebOS 1.45 or earlier versions not supported
platforms supported by the debug clientWeinre mac Program (bring your own client)-Mac OSX 10.6 64-bit Google Chrome 8 and later browser Apple Safari 5 and above
platforms supported by the debug target pageAndroid 2.2+ System browser Android 2.2+ in PhoneGap IOS 4+ Safari browser BlackBerry v6.x simulator WebOS chrome8+ safari5+
One: About Weinre
Weinre is a remote debugging tool that relies on Nodejs
II: Installation of Weinre
1: Installing Nodejs and NPM
2: Installing weinre:npm-g install Weinre
Three: Examples of the use of weinre
1: Open the command line, enter: Weinre--boundhost [ip_address]--httpport [Port] (IP_Address is the IP address of the PC, Cannot be 127.0.0.1,port can enter a random port: preferably more than 8000)
The IP address of my PC is 10.57.225.53, in terminal input: weinre--boundhost 10.57.225.53--httpport 8999
2: Open the URL http://10.57.225.53:8999on the browser, then we can see the following interface:
3: According to label 1
4: Enter the Debug interface according to label 2
5: Use your phone to open the page you want to debug (that is, the page you just added the script to)
Available through the sublime sublimeserver: Configuration See: Http://www.cnblogs.com/lhy-93/p/5741274.html
6: Click on the corresponding targets in the Debug page, then click the Elements tool, you can debug it.
Weinre (PC Debug Mobile page)