'Automatically Show Web Inspector for JSContexts' doesn't work

I'm working on a native Cocoa app that has a few WKWebViews.

When the app is running, I can open the Web Inspector by clicking

Develop > My Computer > Document.title


However when I re-run the app from Xcode, the Web Inspector disappears.


I'd expect that the following toggle in Safari would do what it says, that is, open a new inspector as soon as my app runs again. However this doesn't work.

Develop > My Computer > Automatically Show Web Inspector for JSContexts


Seems like a bug. Is there anything I can do to automatically get a Web Inspector on each re-run?

  • I'm also interested in figuring out how to do this. Our app uses a lot of WebViews, so having to manually open it every time we rebuild the app is very time consuming.

Add a Comment

Replies

I accidentally stumbled across a solution. I went ahead and unchecked the Automatically Show Web Inspector for JSContexts and Automatically Pause Connecting to JSContexts then reselected them after rebuilding. After I did another rebuild the web inspector popped up when the app launched just how it should.