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

牧云@^-^@ 提交于 2019-11-27 03:18:11

问题


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?


回答1:


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 --


来源:https://stackoverflow.com/questions/37390238/how-can-i-set-lldbs-default-language-to-swift

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!