I am developing PhoneGap webapp where I use some javascript, and sometimes I need to see console.log() output. I can easily see it when running in Chrome, it also works fine, when running this app in Android emulator - output of console.log() shows up in Eclipse LogCat window. But when I run this app on my HTC Desire HD, LogCat just shows some Android-specific output, but nothing coming from my webapp.
Anybody has idea how to display console.log() output from PhoneGap-app running on HTC Desire HD ?
Another workaround is to use console.log() jsconsole.com
See the PhoneGap mail list thread. Also, two stackoverflow threads here and here.
It seems that console.log is disabled on HTC devices running Android 2.2.
The best workaround I've found is to use weinre, which intercepts the console.log to show the output in its desktop browser console.
Update: PhoneGap 1.3.0 now supports console.log directly to LogCat from the HTC Evo without any workarounds. (The same program doesn't work with PhoneGap 1.1.0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With