Open tristanlabelle opened 2 months ago
@tristanlabelle There is an LLDB entry in dropdown on the Output panel today, but in order to see verbose output there you'll need to set the "lldb.verboseLogging"
VS Code setting to true
. This will show all the logs written by CodeLLDB. Is this enough for your usecase?
I saw that one and suspected it was for CodeLLDB. I'm interested in the Swift-LLDB adapter since that is compatible with newer toolchains on Windows.
Ah, understood, definitely worthwhile to add this!
Is your feature request related to a problem? Please describe. The LLDB debugger is very unreliable/crashy (at least on Windows). In order to help with investigations, it would be useful to capture logs from LLDB.
Describe the solution you'd like If LLDB offers any sort of logging mechanism, the DAP server should send it back to the client and the VS Code Swift extension should manage an output pane that displays it. The enablement and verbosity of it could be controlled by a setting if it is a concern.
Bonus points if we can have a pane that shows what lldb command-line commands are executed for IDE operations as a learning tool :)
Describe alternatives you've considered Currently we can only debug the debugger. Or would there be a way to ask the DAP to save a log to a file?
Additional context It seems like the VSCode API has limited ability to customize how the debug adapter is launched and stdout is already used for the DAP communication. I can think of two possible implementations:
(this is all assuming LLDB has some logging mechanism)