Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set LLDB's default language to Swift?

Tags:

xcode

swift

lldb

I have a large Swift project that's technically a mixed project, as it has a small amount of Objective-C code. But whenever I drop into LLDB, the expression evaluator is expecting Objective-C syntax. I can use Swift with e -l swift -- but this is tedious to type every time.

Can I default the LLDB expression evaluator to Swift?

like image 452
Bill Avatar asked May 23 '16 11:05

Bill


Video Answer


1 Answers

There is a target level setting to force the language:

(lldb) settings set target.language swift

Or you can make an alias for swift specific expressions:

command alias es expression -l swift --
like image 100
Jim Ingham Avatar answered Oct 17 '22 16:10

Jim Ingham