Skip to main content

Posts

Showing posts from December, 2011

Enabling Remote Debugging using Safari Web Inspector for iOS

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Uncomment to enable remote debugging [NSClassFromString(@"WebView") _enableRemoteInspector]; .... Then use Safari to access http://localhost:9999 and you are debugging with Web Inspector and have full debugging capabilities including breakpoints and DOM manipulation among other things! It only works on iOS5 and it only works when running in the simulator BUT it’s an awesome upgrade from Weinre if you are building an iOS app. Hiedi Utley