2

I understand that remote debugging via chrome://inspect was added in API level 19 for webviews. However, I'm developing an app which supports devices 17+. Its just that on API 19, I get 02-28 00:31:16.569 12332-12332/package E/Web Console: Uncaught SyntaxError: Unexpected token ILLEGAL at null:1 which is not very helpful.

Is there any other way to debug android webview for API < 19? At least can I see JS console?

mehulmpt
  • 15,861
  • 12
  • 48
  • 88

1 Answers1

1

The recommendation is to the the JavaScript console API for below Android 4.4

https://developer.android.com/guide/webapps/debugging.html

But if you want something less directly manual see:

See: How can I debug javascript on Android?

and specifically look for things like Cordova/Weinre or other JavaScript based debugging framework.

Community
  • 1
  • 1
Morrison Chang
  • 11,691
  • 3
  • 41
  • 77