I'm debugging a C project on Mac using LLDB, and the relevant source codes no longer displays inside LLDB commandline, but instead in Xcode.
How do I disable this?
(lldb) version
lldb-1700.0.9.502
Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
About Xcode: Version 16.4 (16F6)
From LLDB help:
--editor
Tells the debugger to open source files using the host's "external editor"
mechanism.
-e Alias for --editor
Turns out, the particular program I debugged received the -e
option (which I use to pass an expression on command line), and LLDB mistaken it for its own. Adding --
between lldb
and the command to debug solved the problem.
Is this a problem with file associations?
Alternatively, if you prefer another GUI editor, you can keep the -e
option, and associate the source code language with an editor of your preference, in my case, Emacs for C, and Kate for configs.