1.MainApplication onCreate方法中,设置WebView.setWebContentsDebuggingEnabled(true);
image.png
2.浏览器中输入:chrome://inspect/#devices
image.png
3.webview中打开需要调试的页面,在chrome中找到该页面inspect进入调试,如果一直显示404,请翻墙后再试!
image.png
1.MainApplication onCreate方法中,设置WebView.setWebContentsDebuggingEnabled(true);
2.浏览器中输入:chrome://inspect/#devices
3.webview中打开需要调试的页面,在chrome中找到该页面inspect进入调试,如果一直显示404,请翻墙后再试!