加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Xcode未读取当前工作目录中的项目特定.lldbinit

发布时间:2020-12-14 19:37:19 所属栏目:百科 来源:网络整理
导读:我想设置项目特定的.lldbinit文件,以便“一切”在版本控制下,并在新计算机中轻松设置.但是,我似乎只能读取?/ .lldbinit文件而不能读取任何?/ git / project / .lldbinit文件. LLDB手册说: lldb will read settings/aliases/commands from three files at st
我想设置项目特定的.lldbinit文件,以便“一切”在版本控制下,并在新计算机中轻松设置.但是,我似乎只能读取?/ .lldbinit文件而不能读取任何?/ git / project / .lldbinit文件.

LLDB手册说:

lldb will read settings/aliases/commands from three files at startup,if
they exist.

First,it will read a ~/.lldbinit-debugger command file. If you are
using the lldb command line interface,this is ~/.lldbinit-lldb. If you
are using lldb inside a GUI debugger like Xcode this will be ~/.lldbinit-
Xcode. This is a useful place to put settings that you want to apply
only when a given lldb command interpreter is used.

Second,~/.lldbinit is read.

Third,an .lldbinit file in the current working directory (where lldb is
started) will be read.

所以我的问题是:如何设置Xcode或项目以使用“第三”选项,即从当前工作目录中读取.lldbinit文件?我如何检查或更改Xcode的“当前工作目录”?

解决方法

这是启动任何进程加载LLDB框架的工作目录. Xcode没有一个有用的工作目录(它是/我上次看的),所以你不能真正使用cwd版本.

在许多情况下可用的Xcode项目特定lldb设置的解决方案是在main上放置一个符号断点,将其设置为自动继续,然后将所需的设置放在该断点的断点命令中.

如果Xcode有一些UI来指定特定于目标的lldbinit文件,那也会很棒.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读