Igo*_*gor 1 breakpoints conditional-statements lldb
全部,
我需要在 OSX 上的 lldb 中设置一个断点,以便程序在第二次命中时停止。
那么我应该在以下内容中添加什么:
break set -f myfile.mm -l 100
Run Code Online (Sandbox Code Playgroud)
尝试调试键盘问题。
蒂亚!
使用-i/--ignore-count标志。在您的示例中,您的命令是:
break set -f myfile.mm -l 100 -i 1
Run Code Online (Sandbox Code Playgroud)
这将跳过断点1时间,并第二次停止(以及之后的每次)。
对于它的价值,文档(来自help breakpoint set)说:
-i <count> ( --ignore-count <count> )
Set the number of times this breakpoint is skipped before stopping.
Run Code Online (Sandbox Code Playgroud)