Xcode does not load project specific .lldbinit files.

Number:rdar://23671344 Date Originated:26-11-2015
Status:Duplicate/3278125 Resolved:
Product:Developer Tools Product Version:Xcode 7.1 (7B91B)
Classification:UI/Usability Reproducible:Always
As pointed out in the lldb man page, normally lldb will load a project specific .lldbinit file from the current working directory, which is pretty much about project specific configuration: “Third, an .lldbinit file in the current working directory (where lldb is started) will be read.”

Unfortunately, Xcode lacks this behaviour.

Steps to Reproduce:
1. Place .lldbinit file in project root
2. Start a debugger session in Xcode
3. Notice that commands/aliases etc defined in .lldbinit file are not available

Expected Results:
Xcode loads a .lldbinit file found in the project root.

Actual Results:
No file is loaded.

Xcode 7.1 (7B91B) & OS X 10.11.1 (15B42)

I have created a Xcode plugin that fixes the lack of this functionality: https://github.com/alloy/LLDB-Is-It-Not

The important parts are:

1. Change the working directory in the debugger session to the project root.
2. Load a `.lldbinit` file if it exists.


Engineering has determined that your bug report (23671344) is a duplicate of another issue (3278125) and will be closed.

The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.

By eloy.de.enige at Dec. 8, 2015, 11:59 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!