After some JavaScript experiments with iPhone, Joe Hewitt just created iBug, a new Firebug bridge for iPhone. Writing and debugging JavaScript from iPhone screen isn’t that fun, that’s why iBug is a network proxy to the phone which allow debugging your AJAX applications directly from your computer “with its big screen and real keyboard”. iBug uses Python for the server, to get it work here are the steps :
- Download ibug0.1.zip and unzip it somewhere, anywhere on your computer
- Make sure you have Python installed - if you are on a Mac, it is already there, if you are on Windows, download it here
- Open your terminal and cd to the ibug directory that you just unzipped
- Run
python ibug.py launch- it will start the web server and open the console in your browser. If you don’t want to open the console, remove the launch argument. - Copy the snippet of HTML that you see in the console and paste it into the head of any HTML pages you want to debug on your iPhone
- That’s it! console.log() calls on the phone will now show up in your browser, and you can use the command line to enter JavaScript commands that execute on the phone. To stop the server, just hit Ctrl-C.
AboutYou are currently browsing the AJAX 4 iPhone weblog archives for debug . |
||||