Monday, October 15, 2012

Gotcha of the Day: Finding sane logcat settings for PhoneGap on Android

I'm loving PhoneGap on Android. I'm also loving that I can peek into the logs and catch errors by using adb.exe's logcat option.

What I wasn't loving was that just kicking off adb.exe logcat resulted in a tidal wave r of information, most of which I couldn't care less about.

One solution I've found is to use the following logcat filter specification:

 adb.exe logcat Cordova:* DroidGap:* CordovaLog:* *:S

Seems to show me just the relevant information.

I wouldn't be surprised if I was missing additional tags to monitor - if you know of any, I'd love to add them in. Otherwise, I'll update this as I gain more experience with PhoneGap.

No comments:

Post a Comment