|
@@ -25,7 +25,7 @@ Settings -> Safari -> Advanced -> Web Inspector
|
25
|
25
|
|
26
|
26
|
It's possible to debug WebView contents in the Android emulator or on a device using Chrome DevTools.
|
27
|
27
|
|
28
|
|
-1. You will need to make the following change to `MainActivity.java` to enabled web contents debugging:
|
|
28
|
+1. You will need to make the following change to `MainApplication.java` to enabled web contents debugging:
|
29
|
29
|
```java
|
30
|
30
|
import android.webkit.WebView;
|
31
|
31
|
|
|
@@ -41,6 +41,8 @@ It's possible to debug WebView contents in the Android emulator or on a device u
|
41
|
41
|
4. Select your device on the left and select "Inspect" on the WebView contents you'd like to inspect
|
42
|
42
|
5. You can now debug the WebView contents just as you would on the web
|
43
|
43
|
|
|
44
|
+![image](https://user-images.githubusercontent.com/1479215/47129785-9476e480-d24b-11e8-8cb1-fba77ee1c072.png)
|
|
45
|
+
|
44
|
46
|
##### Note:
|
45
|
47
|
|
46
|
48
|
When debugging on device you must enable USB debugging in your device settings:
|