常用的就是po 其实还有很多强大的命令 可以让调试变的更快捷方便
直接上干货
让lldb功能更强大 调试程序会更方便
1.打开终端窗口 依次输入
git clone https://github.com/facebook/chisel.git
git clone https://github.com/DerekSelander/LLDB.git
# ~/.lldbinit
command script import /Users/apple/chisel/fblldb.py
command script import /Users/apple/LLDB/lldb_commands/dslldb.py
xcode LLDB 模式下输入 command source ~/.lldbinit
即可
search
pviews
presponder
pactions 0xxxxxx
methods 0xxxxxx
具体命令可以查看github