At first glance, using weinre may look complicated but if you follow these steps you will be able to debug any app from your desktop:
Download and install Node.js from http://nodejs.org/.
Install the package manager npm available at https://npmjs.org/.
Install weinre using the command-line tool:
$ npm install weinre -g
Start weinre using
boundHost
as your network IP address (i.e., the one other devices can use in your LAN to reach your computer):$ weinre -boundHost xxx.xxx.xxx.xxx
Copy in the head of your page the script needed to include the JavaScript that enables remote debugging:
<script src="http: //xxx.xxx.xxx.xxx:8080/target/target-script.js#anonymous"></script>
Build your app, install it on a real device connected to the same LAN, and start debugging it.
Be sure to use the right IP address and to add the script
tag at the beginning of the page; if you follow these two steps carefully, you're up and running with weinre in no...