Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (20 sloc) 1.736 kb

This whole project is deprecated, use Weinre

ibug: Firebug for your (i)Phone

Debug JavaScript on your mobile device from the comfort of your desktop browser.

Originally developed by Joe Hewitt: - Subversion

This is rough around the edges.

Tested running on Chrome OSX with a 3.0 iPhone 3GS.

Setup

  • Download and install Node.js: http://nodejs.org/#download

  • Run the server: node server.js.

  • You can specify host/port if you'd like: node server.js example.com:8001.

  • Point a browser at the server, http://YOUR_IP:8001/. This is your console.

  • You can use 127.0.0.1 as YOUR_IP but this will not work on an actual device.

  • Paste <script type="application/x-javascript" src="http://YOUR_IP:8001/ibug.js"></script> into the page you want to debug.

  • Open the page you want to debug in your phone browser. This is your client.

  • Type alert('Hello world!') in your console window, if your phone displays 'Hello World' you are in business...

  • It will then act like a firebug console, you can examine variables by typing their name... To get a proper breakdown type console.dir(varName).

  • The following console functions are supported: console.log, console.debug, console.info, console.warn, console.assert, console.dir, console.dirxml, console.group, console.groupEnd, console.time, console.timeEnd, console.onError, console.$ (shortcut for document.getElementById), console.$$ (shortcut for document.getElementsByTagName), console.command (default action)

Jump to Line
Something went wrong with that request. Please try again.