We need to debug a website running inside a WkWebView on visionOS. To debug it, I want to connect my desktop Safari to it. However, at least in the simulator there is no option in visionOS' Safari settings to enable Web Debugging. Is this missing, or can it be found elsewhere?
Accepted Reply
Have you tried setting the isInspectable property of the WKWebView?
-
Thanks, I found this property in the meantime. I think this should be mentioned on this page:
https://developer.apple.com/documentation/safari-developer-tools/inspecting-visionos
The way I read this, it's enough to run you app in the simulator. But even if you try to debug Safari, it will not work. Setting the
isInspectable
flag worked, though.
Replies
Have you tried setting the isInspectable property of the WKWebView?
-
Thanks, I found this property in the meantime. I think this should be mentioned on this page:
https://developer.apple.com/documentation/safari-developer-tools/inspecting-visionos
The way I read this, it's enough to run you app in the simulator. But even if you try to debug Safari, it will not work. Setting the
isInspectable
flag worked, though.