Create a gist now

Instantly share code, notes, and snippets.

anonymous /min_ponydebugger.m
Created Dec 17, 2012

What would you like to do?
minimum PonyDebugger setup
#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