Skip to content

Instantly share code, notes, and snippets.

@huangboju
Last active March 18, 2022 01:11
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 huangboju/9f66acf521effb7b7c0eeafcbc0ea0c0 to your computer and use it in GitHub Desktop.
Save huangboju/9f66acf521effb7b7c0eeafcbc0ea0c0 to your computer and use it in GitHub Desktop.



多个断点设置

  • br set -r '\[UIButton .*\]$' 给一个类所有方法打上断点

  • br set -F "-[UIApplication openURL:options:completionHandler:]" 给方法设置断点,Swift也可以

  • expr -O --language objc --内存地址 // 用po打印是一串数字用这个

  • expr -l objc++ -O -- [[UIWindow keyWindow] _autolayoutTrace] // Autolayout 歧义

  • bugreport unwind --outfile <path to output file> 导出lldb log

  • bt 同 thread backtrace 调用栈

[[内存地址 superview] recursiveDescription]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment