Skip to content

Conversation

@da-viper
Copy link
Contributor

if the cwd option is empty this means the adapter is created in the home folder.

Any relative file saved is in the home folder. The files should be relative to the current workspace folder.

if the `cwd` option is empty this means the adapter is created in the home folder. Any relative file saved is in the home folder. The files should be relative to the current workspace folder.
@llvmbot
Copy link
Member

llvmbot commented May 19, 2025

@llvm/pr-subscribers-lldb

Author: Ebuka Ezike (da-viper)

Changes

if the cwd option is empty this means the adapter is created in the home folder.

Any relative file saved is in the home folder. The files should be relative to the current workspace folder.


Full diff: https://github.com/llvm/llvm-project/pull/140604.diff

1 Files Affected:

  • (modified) lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts (+1)
diff --git a/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts b/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts index 3a86d1f3f418f..d61b81e4c041f 100644 --- a/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts +++ b/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts @@ -184,6 +184,7 @@ export async function createDebugAdapterExecutable( ...configEnvironment, ...env, }, + cwd: workspaceFolder!!.uri.fsPath, }; const dbgArgs = await getDAPArguments(workspaceFolder, configuration); 
@da-viper da-viper merged commit 2523a83 into llvm:main May 19, 2025
13 checks passed
@da-viper da-viper deleted the dap-current-working-directory branch October 31, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants