Skip to content

Instantly share code, notes, and snippets.

@quirm
quirm / .lldbinit
Last active January 2, 2016 02:29
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.