在Xcode 5中进入STL源

GOT*_*O 0 3 c++ debugging xcode stl step-into

我已经使用Xcode 5了一段时间,我无法弄清楚如何调试到STL源头.选项"Step Into"(F7)只是跳过我希望调试器进入的语句,我找不到更改此行为的设置.我记得人们抱怨以前版本的Xcode,其中踩到STL源无法关闭......这令人沮丧.

Jim*_*ham 12

lldb中有一个控件可以控制:

(lldb) settings show target.process.thread.step-avoid-regexp
target.process.thread.step-avoid-regexp (regex) = ^std::
Run Code Online (Sandbox Code Playgroud)

如您所见,默认情况下,它设置为不进入std命名空间中的任何内容.只需.lldbinit在您的主目录中调用一个文件,然后输入:

settings set target.process.thread.step-avoid-regexp ""
Run Code Online (Sandbox Code Playgroud)

我们将不再跳过std中的函数.