LLDB Summary Strings - How to Transfer Them to Xcode Sessions

I define lldb string strings when debugging a program in Xcode 5, for example

    type summary add -s "${var._operation} ${var._text}" DMDiff 

It works great. However, when I close Xcode, restart it, and continue debugging the session, my summary lines have disappeared. Saving a project in advance does not matter.

My question is: what is the best way to make these summary lines persist from Xcode session to Xcode session, i.e. save them in the project or debugging information?

Workaround: I found out that I can define summary lines in the ~ / .lldbinit file so that they are saved and this works. However, this seems cumbersome as well as global, and not based on each project. I might need a different summary line for the data type in different projects.

+5
source share
3 answers

Please note that you can also give a summary of the category by using the -w option to enter a summary add. Thus, you can group related resumes and turn them all on and off using the command "type category {enable / disable}". If you decide to put your resume in your .lldbinit, you can use this trick to include those that matter.

+2
source

, main() "command source myFile"

+1

Are the answers here still working on Xcode 11? I have no success in adding summary lines.

0
source

All Articles