Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Step into STL sources in Xcode 5

I've been using Xcode 5 for a while now and I can't figure out how to debug into the STL source headers. The option "Step Into" (F7) just skips over the statement I would like the debugger to step into, and I don't find a setting to change this behavior. I remember people complaining about previous versions of Xcode where stepping into the STL sources could not be turned off... it's frustrating.

like image 266
GOTO 0 Avatar asked Dec 09 '22 12:12

GOTO 0


1 Answers

There is a setting in lldb that controls this:

(lldb) settings show target.process.thread.step-avoid-regexp
target.process.thread.step-avoid-regexp (regex) = ^std::

As you see, by default it is set not to step into anything in the std namespace. Just make a file called .lldbinit in your home directory, and put in that:

settings set target.process.thread.step-avoid-regexp ""

and we will no longer skip over functions in std.

like image 63
Jim Ingham Avatar answered Dec 11 '22 02:12

Jim Ingham