如何将LLDB的默认语言设置为Swift? [英] How can I set LLDB's default language to Swift?
本文介绍了如何将LLDB的默认语言设置为Swift?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个大型的Swift项目,从技术上来说,这是一个混合项目,因为它包含少量的Objective-C代码.但是,每当我进入LLDB时,表达式评估器都期望使用Objective-C语法.我可以将Swift与e -l swift --
一起使用,但这每次都很难输入.
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.
我可以将LLDB表达式评估器默认为Swift吗?
Can I default the LLDB expression evaluator to Swift?
推荐答案
有一个目标级别设置可以强制使用该语言:
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 --
这篇关于如何将LLDB的默认语言设置为Swift?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文