Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Debug JavaScript on your mobile device from the comfort of your desktop browser.
JavaScript
branch: master

This branch is 11 commits ahead of cj:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
errorIcon.png
firebug.css
firebug.html
firebug.js
fu.js
ibug.js
infoIcon.png
queue.js
server.js
warningIcon.png

README.md

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)

Something went wrong with that request. Please try again.