Skip to content

Instantly share code, notes, and snippets.

@sabarasaba
Last active December 25, 2015 12:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sabarasaba/6976220 to your computer and use it in GitHub Desktop.
Save sabarasaba/6976220 to your computer and use it in GitHub Desktop.
Debugging webapps in Android default browser

Install the weinre module from npm:

$ sudo npm -g install weinre

In your index.html add the following line before closing the head section:

<script src="http://your-local-ip:8081/target/target-script-min.js#anonymous"></script>

Then in your terminal run:

$ weinre --httpPort 8081 --boundHost your-local-ip

Now, if you navigate to your-local-ip:8081 you should see the chrome element inspector and also a list with the conected devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment