如何不进入Xcode中的shared_ptr [英] How to not step into shared_ptr in xcode

查看:57
本文介绍了如何不进入Xcode中的shared_ptr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于此问题: 如何避免调试进入Boost源Visual Studio中编写代码?

但是如何在Xcode中做到呢?

But how can I do it in Xcode?

谢谢, 吉姆

推荐答案

关键是lldb设置target.process.thread.step-avoid-regexp.在我的Mac上,其默认值为^std::.您可能想通过输入lldb并键入settings show target.process.thread.step-avoid-regexp在安装程序上对其进行检查.无论如何,您可以做的是编辑〜/.lldbinit,如果尚不存在则创建它,并添加

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)

这保留了以前不进入std ::东西的行为,也没有进入shared_ptr.

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

这篇关于如何不进入Xcode中的shared_ptr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆