How to not step into shared_ptr in xcode

拈花ヽ惹草 提交于 2019-12-09 17:38:52

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/15556438/how-to-not-step-into-shared-ptr-in-xcode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!