Skip to content

Instantly share code, notes, and snippets.

@quirm
Last active January 2, 2016 02:29
Show Gist options
  • Select an option

  • Save quirm/8237678 to your computer and use it in GitHub Desktop.

Select an option

Save quirm/8237678 to your computer and use it in GitHub Desktop.
Init file for lldb to create custom aliases for the iOS debug. Copy following content to ~/.lldbinit file.
# A recursive description of keyWindow or passed UIView as an argument.
command regex rd 's/^[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 recursiveDescription]/'
# A description of core foundation CGPathRef.
command regex path_print 's/(.+)/print (void)CGPathPrint(%1, 0)/'
# Auto layout trace of keyWindow or passed UIView as an argument.
command regex altrace 's/^[[:space:]]*$/po [[UIApp keyWindow] _autolayoutTrace]/' 's/^(.+)$/po [%1 _autolayoutTrace]/'
# Auto layout print of UIView's horizontal constraints.
command regex alhcons 's/^(.+)$/po [(id)%1 constraintsAffectingLayoutForAxis:0]/'
# Auto layout print of UIView's vertical constraints.
command regex alvcons 's/^(.+)$/po [(id)%1 constraintsAffectingLayoutForAxis:1]/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment