How to set default LLDB language on Swift?

I have a large Swift project, which is technically a mixed project, as it has a small amount of Objective-C code. But whenever I get into LLDB, the expression evaluator expects Objective-C syntax. I can use Swift with e -l swift -- but it is tiring to print every time.

Is it possible to evaluate LLDB expression in Swift by default?

+7
xcode lldb swift
source share
1 answer

There is a target level setting for the forced translation of the language:

 (lldb) settings set target.language swift 

Or you can create an alias for quick specific expressions:

 command alias es expression -l swift -- 
+14
source share

All Articles