Created
December 17, 2012 03:34
-
-
Save anonymous/4315606 to your computer and use it in GitHub Desktop.
minimum PonyDebugger setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if DEBUG | |
#import <PonyDebugger/PDDebugger.h> | |
#endif | |
#if DEBUG | |
PDDebugger *debugger = (PDDebugger *) [NSClassFromString(@"PDDebugger") defaultInstance]; | |
[debugger connectToURL:[NSURL URLWithString:@"ws://localhost:9000/device"]]; | |
[debugger enableNetworkTrafficDebugging]; | |
[debugger forwardAllNetworkTraffic]; | |
[debugger enableViewHierarchyDebugging]; | |
[debugger setDisplayedViewAttributeKeyPaths:@[@"frame", @"hidden", @"alpha", @"opaque"]]; | |
[debugger enableCoreDataDebugging]; | |
[debugger addManagedObjectContext:[NSManagedObjectContext MR_defaultContext] withName:@"MOC"]; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment