告诉LLDB忽略文件 [英] Tell LLDB to ignore files
问题描述
有没有办法告诉LLDB忽略文件,即在调试时是否跳过该文件中的代码?
Is there a way to tell LLDB to ignore a file, i.e. step over code in that file when debugging?
(这可以用作< a href =http://stackoverflow.com/questions/12439318/debug-issues-with-libc-in-xcode-4-4title =1> 1 , 2 , 3 ) p>
(This could be used as a workaround for 1, 2, 3)
推荐答案
有一个设置可避免步入名称匹配正则表达式的函数,
There is a setting to avoid stepping into functions whose name match a regular expression,
(lldb) set list target.process.thread.step-avoid-regexp
step-avoid-regexp -- A regular expression defining functions step-in won't stop in.
例如将此设置为您的〜/ .lldbinit
文件
e.g. put this in your ~/.lldbinit
file
settings set target.process.thread.step-avoid-regexp ^[^ ]+ std::|^std::
但在Xcode 4.5.x这是最好的,可以做到。我在#2的链接中提到,在 http://lldb.llvm中,内联步进支持已添加到LLDB源中。 org / ,但在下一个版本之前不会在Xcode中。
but in Xcode 4.5.x that's the best that can be done. I mentioned in #2 of your links that inlined stepping support has been added to the LLDB sources at http://lldb.llvm.org/ but that won't be in Xcode until the next release.
这篇关于告诉LLDB忽略文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!