views:

55

answers:

2

Are there any means of debugging JS code, or at least get errors, on Android devices?

A: 

Error messages should show up in the log with the WebCore tag.

Answered previously.

BrennaSoft
We answered with the same link at the same time. See my answer - it looks like the Tag isn't always WebCore - perhaps it is if the browser view is embedded in an app.
ydant
A: 

This helps:

http://www.nanaze.com/2009/01/debugging-javascript-on-android.html

There are Firebug like methods (e.g. console.debug, console.info) that will log to logcat, so you can snoop there.

In my testing I'm getting logs to W/browser, not D/WebCore, but the info is being logged there.

ydant