(lldb) expr -l swift -- let $ook = "verb" (lldb) expr -l swift -- print("I seem to be a ($ook)") I seem to be a verbAnd if you want to call your own stuff (say the project name isC-Interop
):(lldb) expr -l swift -- import C_Interop (lldb) expr -l swift -- SomeClass().useAnother()This creates a new instance ofSomeClass
and calls theuseAnother
method.(Thanks to Zach Waldowski for this one.)