Index: lldb/tools/lldb-vscode/lldb-vscode.cpp =================================================================== --- lldb/tools/lldb-vscode/lldb-vscode.cpp +++ lldb/tools/lldb-vscode/lldb-vscode.cpp @@ -2777,6 +2777,12 @@ int main(int argc, char *argv[]) { + // LLDB writes logs to stderr and the system logs, but + // no one is reading from stderr so this can block + // once the pipe buffer is full. + fclose(stderr); + stderr = fopen("/dev/null", "w"); + // Initialize LLDB first before we do anything. lldb::SBDebugger::Initialize();