Standards Based Development
Standards Based Development
Mobile Safari's Web Inspector
Mobile Chrome offers usb Remote Debugging, enabling WebKit DevTools accessible on the desktop. Android 4.0 and greater offers usb Remote Debugging as well. iOS also has similar usb remote debugging tools, but again they're only for the latest versions of iOS. Mobile Safari Web Inspector is the iOS version of Chrome's remote debugger; works with PhoneGap.
WebKit uses wip while Mozilla uses remote debugging protocol.
iWebInspector cannot run on an actual iOS device, so it doesn't work for every case.
ADB Logcast / Console.app
Console.log output will generally be visible in heinre/Chrome/iWebInspector. Some messages may go straight into system logs, which is accessible on Android via adb logcat command. First connect the Android device via usb, then on desktop run adb logcat browser:V*:S, which will pipe the logs from the mobile browser to desktop, while supressing all non browser log entries. The best way to access system logs in iOS is to launch your PhoneGap application from within XCode.