Debugging WebView in Android
1 min readJun 1, 2017
Webview w = (WebView) findViewById (R.id.editor);
w.loadUrl('http://example.com');
//To debug html from browser
webview.setWebContentsDebuggingEnabled (true);
//Enable javascript
w.getSettings().setJavaScriptEnabled(true);
open this url in browser
chrome://inspect/#devicesGet Ali Khan’s stories in your inbox
Join Medium for free to get updates from this writer.
Press enter or click to view image in full size![]()
click on the inspect link. It will be opened in new tab.





