Skip to content

Instantly share code, notes, and snippets.

@maojj
Created March 17, 2014 07:01
Show Gist options
  • Select an option

  • Save maojj/9595075 to your computer and use it in GitHub Desktop.

Select an option

Save maojj/9595075 to your computer and use it in GitHub Desktop.
# ~/.lldbinit
...
command script import /usr/local/bin/fblldb.py
command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);
command alias reveal_load_dev expr (void*)dlopen([(NSString*)[(NSBundle*)[NSBundle mainBundle] pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2);
command alias reveal_start expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
command alias reveal_stop expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStop" object:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment