Debug Your App
Debug your app using Chrome Developer Tools for Android and Safari Web Inspector for iOS
Enable USB debugging
Open Developer Options
Go to Settings > About (or similar) and tap the Build number seven times to unlock Settings > Developer Options.
Enable USB debugging
Go to Developer Options and enable the USB debugging option.
See the Android documentation for a detailed walk-through.
Connect Chrome Developer Tools
Open the inspector
In your PC's Chrome browser, navigate to chrome://inspect.
Connect your device
Connect your phone to your PC via USB and open the test version of your app. You may need to allow the connection on your phone — select always allow.
Inspect the WebView
Your phone should appear under Remote Target in Chrome. Find the WebView entry and click Inspect to open Developer Tools.
For more details, see the Chrome remote debugging documentation.
Enable Developer Mode in Safari
Open Safari preferences
Open Safari on your Mac and go to Safari > Preferences in the menu bar.
Enable developer features
Click the Advanced tab and check Show features for web developers at the bottom. This adds the Develop menu to Safari.
Connect Safari Web Inspector
Enable Web Inspector on your device
On your iOS device, go to Settings > Safari > Advanced and toggle on Web Inspector.
Connect your device
Connect your iOS device to your Mac using a USB cable.
Inspect the WebView
Open Safari on your Mac, go to the Develop menu, then select your iOS device and the WebView you want to inspect.