diff options
author | Roy Shi <royitaqi@users.noreply.github.com> | 2025-08-28 14:21:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-28 14:21:28 -0700 |
commit | 20b86644e45a76c4fa33c4a05c05b0726607cf77 (patch) | |
tree | 055255879859ca84379169fca26fce8a9de72614 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 826780a84e11c2366ce0941319f4dd509d98c50b (diff) | |
download | llvm-20b86644e45a76c4fa33c4a05c05b0726607cf77.zip llvm-20b86644e45a76c4fa33c4a05c05b0726607cf77.tar.gz llvm-20b86644e45a76c4fa33c4a05c05b0726607cf77.tar.bz2 |
[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.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions