I know about firebug and the developer tools for the major modern desktop browsers, but I can\'t find any way of debugging JavaScript code on mobile browsers.
What a
On the IPhone you can go into settings>Safari>advanced and turn web inspector on