Here’s a new tool release which will no doubt be of interest to all you online application developers: a remote console debugger for querying and manipulating your iPhone pages remotely.
As announced by author Jon Brisbin,
I grew frustrated with trying to debug my iPhone Ajax apps and wanted a way to interrogate the DOM and JavaScript stack while my page was running. Joe Hewitt had written a tie-in to firebug that gave me the idea to take that to the next logical step: a COMET-based JavaScript debugger and console. It allows you to log to a remote desktop console from your JavaScript code, but most importantly, it lets you send commands to the iPhone to be executed there. You can inspect style properties of your elements, set new ones, call JavaScript functions, etc… Anything that can be eval’d can be sent via the command line.
Sounds pretty sweet!
The code is GPLv3, posted on Google Code as the iphonedebug project.
Screenshots of remote iPhone debugging in action can be seen here.
h/t: iPhoneWebDev!

1 Response to “The iPhone Debug Console”
Leave a Reply