Hello,
What is the proper way to inspect a WebView in a Mac application?
I can access any iOS simulator or connected device through the Safari Develop menu just not any Mac apps (The entry for the Mac lists "No Inspectable Applications").
All the Mac apps are launched by Xcode and the scheme is set to debug.
Is there something I am missing or are Mac apps not supported? I tried to search the documentation but found nothing.
Thanks.
Hi, I found this in the About Safari Web Inspector > Get Oriented documentation
WebKit-based Apps
To enable the developer tools in a WebKit-based application other than Safari, enter the following into the Terminal:
defaults write com.bundle.identifier WebKitDeveloperExtras -bool true
Replace
com.bundle.identifier
with the bundle identifier of your app, and then launch your app. Web Inspector can now be accessed by a Control-click or right-click from within any web view. You must also enable contextual menus in your app.