How to debug WebViews on iOS devices with Inspect
Inspect can only debug web content in developer provisioned applications or applications with the com.apple.webinspector.allow entitlement
Which WebView types are supported on iOS?
- WKWebView
- WebView
- JSContext
This is a limitation from Apple, and something Inspect can’t change. See https://webkit.org/web-inspector/enabling-web-inspector/ for details.
How to get started?
Follow our getting started guide to get going.
WebViews FAQ
Enabling the Inspection of Web Content in Apps
In iOS 16.4 Apple made it possible for developers to control how WKWebView or JSContexts are inspectable via new isInspectable
property. This means that if your app is using WebViews you probably need to set the isInspectable
to true before Inspect can detect and debug your app.
Read https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/ for more.
If you are building a ionic capacitor app, or cordova app please see:
Was this page helpful?