

In iOS webviews, messages passed to console.log() are not printed to the Xcode logs. This will open a new Chrome DevTools window for inspecting the webview. Click the inspect link next to the webview that you wish to debug.

This page shows you a list of webview instances running on your connected Android device.

Install Chrome on your dev computer if you haven't yet.If you use the device for development, then you've probably done this already. First, enable USB debugging on your Android device.However, it's often much more helpful to inspect the page with Chrome DevTools, because that allows you to use its JavaScript debugger and other essential tools. One way to troubleshoot JavaScript on Android is to insert console.log() statements into your code, since those messages are printed to the Logcat logs that are viewable in Android Studio. This entails connecting your Android or iOS device to your dev computer and then using your browser's developer tools to inspect your app's webviews. Fortunately, it's easy to remotely inspect webviews that are running in your Android or iOS application. It's sometimes helpful to debug a webpage rendered in a webview in order to inspect its layout or to troubleshoot JavaScript.
