Weinre (WEb INspector remote) is a page debugging tool that is used primarily for remote debugging. Weinre is useful for debugging a page on a mobile device.
We need some steps to get weinre running, first we need to install node.js,weinre will run on node. JS, Next we will install
Node Package Manager (NPM), and finally, we'll install weinre.
The first step:
The simplest way to get node. js is to download Windows Installer. Because the Windows Installer has automatically downloaded NPM.
Step Two:
Install weinre, enter the execution directory for node and NPM, and execute the following command:
Install weinre
Step Three:
Run Weinre, now that weinre is installed, open a command-line window, go to the execution directory of node. js, and run the following command:
Node.exe node_modules\weinre\weinre--boundhost-all-
A weinre instance will be started.
Fourth Step:
On your mobile device, turn on weinre, open your Chrome browser, and type: http://ip:8080 on the Address bar. You put the target script on your Web page. Now you can debug your mobile page.
Use your computer to debug your phone page