You can try adding a console message handler to your WebView by creating your own WebChromeClient:
class MyWebChromeClient extends WebChromeClient { @Override public boolean onConsoleMessage(ConsoleMessage cm) { Log.d("CONTENT", String.format("%s @ %d: %s", cm.message(), cm.lineNumber(), cm.sourceId())); return true; } }
And then attach it:
someWebView.setWebChromeClient(new MyWebChromeClient());
source share