Does anyone know if there is a way to view the data written by Javascript console.log from an embedded Crosswalk webview?
Googling this has not been very helpful, and I can't find documentation regarding the question.
There are two ways to view the JavaScript console log in Crosswalk WebView:
From adb logcat
, since Crosswalk is based on Chromium, all JavaScript console logs are redirected to adb log. you can view it via
adb logcat -s chromium
From Chrome remote debugging tool, Crosswalk supports Chrome's remote debug protocol. So you can connect the device to a PC/Mac host running desktop Chrome, and open chrome://inspect
in the desktop Chrome, you'll find Crosswalk WebView's page is listed, and then inspect the page like inspecting desktop tab.
You can refer: https://crosswalk-project.org/#wiki/Remote-Debugging-on-Android https://developer.chrome.com/devtools/docs/remote-debugging#open-webview