[all-commits] [llvm/llvm-project] 20b866: [vscode-lldb] Support lldb-dap environment in debu...
Roy Shi via All-commits
all-commits at lists.llvm.org
Thu Aug 28 14:21:49 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20b86644e45a76c4fa33c4a05c05b0726607cf77
https://github.com/llvm/llvm-project/commit/20b86644e45a76c4fa33c4a05c05b0726607cf77
Author: Roy Shi <royitaqi at users.noreply.github.com>
Date: 2025-08-28 (Thu, 28 Aug 2025)
Changed paths:
M lldb/tools/lldb-dap/package.json
M lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts
M lldb/tools/lldb-dap/src-ts/lldb-dap-server.ts
Log Message:
-----------
[vscode-lldb] Support lldb-dap environment in debug configuration (#153536)
# Changes
1. Add a new debug configuration field called `debugAdapterEnv`. It accepts a string-valued dictionary or array.
1. This input format is consistent with the (program's) `env` debug configuration.
2. In the adapter descriptor factory, honor the said field before looking at the VS Code settings `Lldb-dap: Environment `.
1. This order is consistent with how things are done for other debug configuration fields, e.g. lldb-dap path and args.
3. In the lldb-dap server, note down the environment entries as a part of the adapter spawn info (now it becomes "path + args + env"), and prompt the user to restart server if such info has changed.
# Motivation
1. Adapter environment can be set in `launch.json`.
2. Other debugger extensions can invoke the lldb-dap extension with adapter environment (via debug configuration).
# Tests
See PR #153536.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list