Skip to content

Instantly share code, notes, and snippets.

@dealforest
Created November 14, 2013 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dealforest/7460938 to your computer and use it in GitHub Desktop.
Save dealforest/7460938 to your computer and use it in GitHub Desktop.
define pv
if $argc == 0
po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]
end
if $argc == 1
po [$arg0 recursiveDescription]
end
end
define st
po [NSThread callStackSymbols]
end
command regex pv 's/^[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 recursiveDescription]/'
command regex st 's/^[[:space:]]*$/po [NSThread callStackSymbols]/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment