
It's still relatively easy to debug web content with Safari's developer tools, although there are a couple of limitations: 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.

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.
