简体   繁体   中英

Tell LLDB to ignore files

Is there a way to tell LLDB to ignore a file, ie step over code in that file when debugging?

(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.

eg put this in your ~/.lldbinit file

settings set target.process.thread.step-avoid-regexp ^[^ ]+ std::|^std::

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM