Remote Web Inspector Pt. 2
It gets even better, because this also works in Mobile Safari on the iOS 5 Simulator!
Here’s a little script you can run, that enables the remote Web Inspector via gdb (via @atnan).
Here’s to all the mobile devs!
It gets even better, because this also works in Mobile Safari on the iOS 5 Simulator!
Here’s a little script you can run, that enables the remote Web Inspector via gdb (via @atnan).
Here’s to all the mobile devs!
We recently stumbled across a blog post mentioning a way to enable a remote interface to a web inspector that is hidden inside the WebKit on iOS 5.
Here’s how it’s done. In your Application Delegate add the following code:
+ (void)initialize;
{
[NSClassFromString(@"WebView") performSelector:@selector(_enableRemoteInspector)];
}
With this you can direct your browser to http://localhost:9999 to open the web inspector.
Have fun!
To put an application running in Simulator in slow motion mode press ` or + (for german or english keyboard layout)
UPDATE: Looks like this stopped working since some 3.1.x version.
ANOTHER UPDATE: There is a new way to do this
Remember that this will influence you’re App Store review experience