Skip to content

Instantly share code, notes, and snippets.

@afarnham
Created June 24, 2009 07:40
Show Gist options
  • Save afarnham/135073 to your computer and use it in GitHub Desktop.
Save afarnham/135073 to your computer and use it in GitHub Desktop.
//Find the process ID for your iPhone app, attach the debug to it and hit continue. When you reach the first break point
//set "more" to "NO". Hit continue and you will stop at the second break point.
//Taken from here: http://www.iphonedevsdk.com/forum/iphone-sdk-development/10156-how-do-i-debug-app-launched-url.html
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
BOOL more = YES;
while (more) {
[NSThread sleepForTimeInterval:1.0]; // Set break point on this line
}
//your read code goes here. Set a second break point where you want to break at
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment