-
Notifications
You must be signed in to change notification settings - Fork 281
Description
OS: MacOS 15.6
VSCode version: 1.102.3
CodeLLDB version: 1.11.5
Compiler: clang
Debuggee:
When using codelldb
to launch a debug session with the terminal
option in launch.json
set to integrated
, codelldb
automatically hides the launch command line in the terminal, which is the expected and desired behavior.
Here is my launch.json
configuration:
{
"name": "Launch",
"type": "lldb",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [],
"terminal": "integrated"
}
And a simple C++ program to reproduce the issue:
#include <iostream>
#include <string>
int main() {
std::cout << "Enter a string: " << std::endl;
std::string a;
std::cin >> a;
std::cout << "You entered: " << a << std::endl;
return 0;
}
This works perfectly fine, as shown in the image below:

However, if I enable the terminal.integrated.stickyScroll.enabled
setting in VSCode, it causes the integrated terminal to only show the line where input is expected when the program is launched. All preceding output, including the "Enter a string:" prompt, is hidden from view, as shown in the next image:

I have to manually scroll up to see the output:

I have tried to look through the codelldb
and VSCode documentation for a solution, but I haven't found a way to fix this behavior.
Expected Behavior:
The integrated terminal should display the program's output (e.g., "Enter a string:") regardless of whether terminal.integrated.stickyScroll.enabled
is active or not.
Actual Behavior:
With terminal.integrated.stickyScroll.enabled
set to true
, the integrated terminal only displays the cursor at the input location, hiding all previous program output.