llvm / llvm/llvm-project

[lldb-dap] VSCode extension ignores console parameter and defaults to debug console

Open
#161,998 28 comments 0 reactions 0 assignees View on GitHub
lldb-dap
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

## Prerequisites
Hi wonderful people!
I didn't have much success setting up the `lldb-dap` extension.
The `console` parameter seems to be completely ignored, I expect the extension to spawn an integrated terminal instance running the executable. However, it doesn't.
Setting the `console` value to _externalTerminal_ also doesn't seem to affect anything. The extension simple pipes stdout to `Debug Console` without any means to interact with the program.
I also attached a quick recording demonstrating the difference between `lldb-dap` and `CodeLLDB`.

## Steps to reproduce
1. Install the extension from marketplace - https://github.com/eddienubes/c-adventures/tree/lldb-dap-bug-repro
2. Run `Select and Start Debugging` from command palette
3. Compare the behaviour of `lldb-dap` extension (named MacOS LLDB) vs `CodeLLDB` (named MacOS CodeLLDB).
4. The former doesn't spawn an integrated terminal session, meaning it ignores the `console` parameter.

## Environment
M1 Pro MacOS 15.6.1
VSCode 1.104.3
lldb-dap 21.1.2

https://github.com/user-attachments/assets/4d5ecf6f-9cd6-4726-9d40-3f4ed48cb024

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.