Enabling the web inspector in an embedded UIWebView is handy, but what about content running in Mobile Safari?
To do that, we need to call the +[WebView _enableRemoteInspector] API from within the Mobile Safari app. The easiest way to do that is by launching Mobile Safari in the iPhone Simulator, and then use gdb to attach to it and call the private API.