7

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

Community
  • 1
  • 1
Tavison
  • 1,523
  • 1
  • 11
  • 19
  • 1
    Good question, and I would love to know the answer! I have added the lldb tag, because that is the debugger used by recent Xcode versions. – Martin R Mar 21 '13 at 21:52
  • I'm guessing that the debugger steps in to these because they're inlined. Anyone think that's a good guess? – morgancodes Mar 27 '13 at 15:44

1 Answers1

17

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.

JWWalker
  • 22,385
  • 6
  • 55
  • 76