Skip to content

Instantly share code, notes, and snippets.

@djromero
Created April 8, 2014 10:50
Show Gist options
  • Save djromero/10109119 to your computer and use it in GitHub Desktop.
Save djromero/10109119 to your computer and use it in GitHub Desktop.
Enable Core Data debugging with Pony Debugger.
/* Xcode configuration
OTHER_CFLAGS=-I$(HOME)/Library/PonyDebugger/include -DWITH_PONYD=1
OTHER_LDFLAGS=-L$(HOME)/Library/PonyDebugger -lSocketRocket -lPonyDebugger -licucore -ObjC
*/
#if WITH_PONYD
#import <PonyDebugger/PonyDebugger.h>
#endif
#if WITH_PONYD
PDDebugger *debugger = [PDDebugger defaultInstance];
[debugger enableCoreDataDebugging];
[debugger addManagedObjectContext:<#MOC#>];
[debugger autoConnect];
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment