Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to not step into shared_ptr in xcode

Tags:

xcode

lldb

Similar to this question: How can I avoid debugging into Boost source code in Visual Studio?

But how can I do it in Xcode?

Thanks, Jim

like image 728
Tavison Avatar asked Mar 21 '13 19:03

Tavison


1 Answers

The key is the lldb setting target.process.thread.step-avoid-regexp. On my Mac, this had the default value ^std::. You might want to check it on your setup by entering lldb and typing settings show target.process.thread.step-avoid-regexp. Anyway, what you can do is edit ~/.lldbinit, creating it if it does not yet exist, and add a line like

settings set target.process.thread.step-avoid-regexp ^(std::|boost::shared_ptr)

This keeps the previous behavior of not stepping into std:: stuff, and also does not step into shared_ptr.

like image 115
JWWalker Avatar answered Nov 15 '22 07:11

JWWalker