For some unknown reason, Google did not include a debugger in their native browser, at least for versions up to v2.3.x. I donâ€™t have a phone that supports a version greater than that, yet, so I canâ€™t speak about the latest releases. Unfortunately this can be a huge productivity killer. The good news is there is a solution â€“ you can debug the native Android browser using whatâ€™s called the DDMS, or Dalvik Debug Monitor Server, and the ADB, or Android Debug Bridge.Â I can also tell you this works great.
But, if you want to do your best to deliver bug free apps, then your best bet is to install at least ADB. I believe, but Iâ€™m not 100% certain, that you can this without having to install Eclipse along with the entire Android SDK. Yes, I agree that installing the entire SDK would seem entirely ridiculous and complete overkill for mobile web development, especially if you are not using Eclipse as your primary IDE. I’m aware that in the past Iâ€™d seen a few stand-alone versions of this floating around for both Windows and Linux. Iâ€™m not even remotely certain about Macâ€™s. If you do know something about this, then I encourage you to please post a comment.
How to use ADB. My suggestion, once youâ€™ve installed it, is to filter by the tag â€śconsoleâ€ť if you are using Android v2.x and above.Â Instructions on how to do filtering can be found in the ADB link below and scroll towards the very bottom of the page.
Caveat: You will have to install the Android USB device driver on your machine in order for ADB to work.Â And, you will also have to have a USB cable that will connect your device to your dev machine. The drivers are different for every device. Iâ€™ve included a link to Googleâ€™s device drivers below. On a related note, for several of my Motorola Androids I had to go directly to the Motorola website to find a device driver that finally worked.
Another Possibility – Adobe Shadow! You should also be aware of a very cool development from Adobe called Shadow. As of today, I believe you can still download it for free from Adobe labs. I mention this last because, well…I haven’t tried it out. However, my good friend Kevin Hoyt, from Adobe, says it’s very, very promising. And, it’s supported on both Mac and Windows. As I write this I’m thinking that I really do need to download it and test drive it. If you have tried it, then post your thoughts…don’t by shy!
Adobe ShadowÂ + sneak peak video
Android Device Drivers
Googleâ€™s Guidelines for Web app developers