Skip to content

Instantly share code, notes, and snippets.

@mayoff
Created July 12, 2013 05:05
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 mayoff/5981717 to your computer and use it in GitHub Desktop.
Save mayoff/5981717 to your computer and use it in GitHub Desktop.
My .lldbinit for Cocoa Coders
# command alias rd expression -o -- [[UIApp keyWindow] recursiveDescription]
command regex rd 's/^[[:space:]]*$/po [[UIApp keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 recursiveDescription]/'
command regex rsd 's/.*/po [UIApp Rob_recursiveSceneDescription]/'
command script import ~/.../lldb/sniff_objc_exception_throw.py
command regex hcons 's/^(.+)$/po [(id)%1 constraintsAffectingLayoutForAxis:0]/'
command regex vcons 's/^(.+)$/po [(id)%1 constraintsAffectingLayoutForAxis:1]/'
command regex cons 's/^(.+)$/script lldb.debugger.HandleCommand("po [(id)%1 constraintsAffectingLayoutForAxis:0]"); lldb.debugger.HandleCommand("po [(id)%1 constraintsAffectingLayoutForAxis:1]")/'
command regex altrace 's/^[[:space:]]*$/po [[UIApp keyWindow] _autolayoutTrace]/' 's/^(.+)$/po [%1 _autolayoutTrace]/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment