有没有办法告诉 LLDB 忽略文件,即在调试时跳过该文件中的代码?
(这可以用作解决方法1 https://stackoverflow.com/questions/12439318/debug-issues-with-libc-in-xcode-4-4, 2 https://stackoverflow.com/questions/12651441/debugger-steps-deeper-when-trying-to-step-out-of-c11-std-lib, 3 https://stackoverflow.com/questions/13099916/stepping-through-the-code-is-stopping-on-stl-code-when-debugging-c-with-xcode?lq=1)
有一个设置可以避免单步执行名称与正则表达式匹配的函数,
(lldb) set list target.process.thread.step-avoid-regexp
step-avoid-regexp -- A regular expression defining functions step-in won't stop in.
例如把这个放在你的~/.lldbinit
file
settings set target.process.thread.step-avoid-regexp ^[^ ]+ std::|^std::
但在 Xcode 4.5.x 中这是可以做到的最好的了。我在第 2 条链接中提到,内联步进支持已添加到 LLDB 源中:http://lldb.llvm.org/ http://lldb.llvm.org/但这要等到下一个版本才会出现在 Xcode 中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)