Xcode无法读取当前工作目录中的项目特定.lldbinit [英] Project specific .lldbinit in current working directory not read by Xcode
问题描述
我想设置项目特定的.lldbinit文件,这样所有内容"都将受到版本控制,并可以轻松地在新计算机中进行设置.但是,似乎我只能读取〜/.lldbinit文件,而不能读取任何〜/git/project/.lldbinit文件.
I want to setup project specific .lldbinit files, so that "everything" would be under version control and easily setup in new computers. However it seems like I can read only ~/.lldbinit file and not any ~/git/project/.lldbinit files.
LLDB手册说:
lldb将在启动时从三个文件读取设置/别名/命令,如果 它们存在.
lldb will read settings/aliases/commands from three files at startup, if they exist.
首先,它将读取〜/.lldbinit-debugger命令文件.如果你是 使用lldb命令行界面,它是〜/.lldbinit-lldb.如果你 在像Xcode这样的GUI调试器中使用lldb,这将是〜/.lldbinit- Xcode.这是放置您要应用的设置的有用位置 仅当使用给定的lldb命令解释器时.
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.
第二,读取〜/.lldbinit.
Second, ~/.lldbinit is read.
第三,是当前工作目录中的.lldbinit文件(其中lldb是 开始).
Third, an .lldbinit file in the current working directory (where lldb is started) will be read.
所以我的问题是:如何设置Xcode或项目以使用第三个"选项,即从当前工作目录中读取.lldbinit文件?我该如何检查或更改Xcode的当前工作目录"?
So my question is: how do I setup Xcode or project to use the "third" option i.e. read .lldbinit file from the current working directory? How would I check or change what's Xcode's "current working directory"?
推荐答案
现在在 查看全文