3 ms·
[NSClassFromString(@"WebView") _enableRemoteInspector]; 2) Start simulator 3) Visit http://localhost:9999 http://localhost:9999 in Safari for a full-featured
by bri3d 15y ago
[NSClassFromString(@"WebView") _enableRemoteInspector];
2) Start simulator
3) Visit http://localhost:9999 http://localhost:9999 in Safari for a full-featured WebKit debugger.
I like competition but I'm not really sold on the advantages of this platform over its one-line, built-in alternative.
- natesm 15y agoThat won't compile under ARC unless you declare +_enableRemoteInspector somewhere: objc_msgSend(NSClassFromString(@"UIWebView"), @selector(_enableRemoteInspector));
- amirnathoo 15y agoThat's fine if you have yourself setup for native development. We're about helping web developers who don't want to do that.
- noisebleed 15y agoI thought that didn't work on the actual device, which frequently is different enough from the simulator that Catalyst could still be extremely useful. Also, I've never looked into it, but is there any comparable built-in debugging method for Android?