Skip to content

Instantly share code, notes, and snippets.

@tabrindle
Created September 12, 2013 13:32
Show Gist options
  • Save tabrindle/6537381 to your computer and use it in GitHub Desktop.
Save tabrindle/6537381 to your computer and use it in GitHub Desktop.
Homebrew/weinre for MacOSx
Weinre
​Weinre is a debugger for web pages like Web Inspector, except it’s designed to work remotely, and in particular, to allow you debug web pages on a mobile device such as a phone.​
This includes the capability to see live debug from devices or the iOS simulator.
This could be used to see live debug from devices in the field.
​How to Install on MacOSX
Install Homebrew
​ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
install node.js
brew install node
install npm
g​it clone http://github.com/isaacs/npm.git
cd npm
​​sudo make install
​install weinre
sudo npm -g install weinre
run weinre in terminal. Defaults are localhost and Port 8080
-boundHost to change IP
Add the following script into your html
<script src="http://localhost:8080/target/target-script-min.js#[UniqueIDOfAppUserOrDevice]"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment