CavKit: A Debugger for the iPhone

Posted on 02/19/2009 @ 03:53AM

In the process of exploring iPhone web development, I began to find the Mobile Safari console a bit annoying. It's verbose, ugly, hard to read. So as programmers often do, I invented another variant of the wheel: the CavKit iPhone Debugger.

CavKit is the start of what may eventually become my own Javascript library for iPhone web development. Right now it only consists of the debugger, and an abstract Paginator class for paging the debugger results (but is easily reusable).

Right now the debugger is pretty bare bones, but it already offers a few advantages over the Safari console. First and foremost it's prettier and easier to read. The 4 log levels (info, debug, warn and error) show messages in different colors. In addition it's docked to the top right of the page and translucent, so you can have it on the same page as your content.

This is an initial release so in the near future I plan to make it more useful for debugging, with draggability and all that other fun stuff. In the mean time, download it and let me know what you think. Feedback is much appreciated!!