Skip to content

Instantly share code, notes, and snippets.

@sadatrahman
Created July 12, 2011 09:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadatrahman/1077676 to your computer and use it in GitHub Desktop.
Save sadatrahman/1077676 to your computer and use it in GitHub Desktop.
CoreData SQL Debugger
+ (void)installSQLiteDebugger
{
#ifdef DEBUG
[NSClassFromString(@"NSSQLCore") performSelector:@selector(setDebugDefault:) withObject:[NSNumber numberWithBool:YES]];
#endif
}
@tonyarnold
Copy link

Nice stuff! Is there any reason that you've implemented this as an instance method and not a class method?

@sadatrahman
Copy link
Author

Fixed. Good pickup there, Tony. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment