【发布时间】:2015-08-24 16:17:39
【问题描述】:
是否有人将命令加载到 LLDB 以用于 XCode 应用程序的调试会话。 我在 XCode 6.1.1 和 iOS 8.x 中
我不懂任何 Python,所以我非常希望避免涉及 Python。 我想从一个文件中加载我手动输入的这些内容,这样我就不必在每次重新运行调试会话时一遍又一遍地输入它...
(lldb) breakpoint set --func-regex "SomeClass"
Breakpoint 10: 48 locations.
(lldb) breakpoint set --func-regex "AnotherClass"
Breakpoint 11: 15 locations.
(lldb) breakpoint set --func-regex "ThisClass"
Breakpoint 12: 15 locations.
(lldb) breakpoint set --func-regex "ThatClass"
Breakpoint 13: 57 locations.
(lldb) breakpoint set --func-regex "OurClass"
Breakpoint 14: 98 locations.
(lldb) breakpoint set --func-regex "YourClass"
Breakpoint 15: 22 locations.
(lldb) breakpoint set --func-regex "HerClass"
Breakpoint 16: 17 locations.
(lldb) breakpoint set --func-regex "HisClass"
Breakpoint 17: 46 locations.
(lldb) breakpoint set --func-regex "TheyreClass"
Breakpoint 18: 63 locations.
(lldb) breakpoint command add 10
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 11
Enter your debugger command(s). Type 'DONE' to end.
> frame info; continue; DONE
> DONE
(lldb) breakpoint command delete 11
(lldb) breakpoint command add 11
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 12
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 13
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 14
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 15
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 16
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 17
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
(lldb) breakpoint command add 18
Enter your debugger command(s). Type 'DONE' to end.
> frame info
> continue
> DONE
谢谢
【问题讨论】: