Skip to content

Commit 2523a83

Browse files
authored
[lldb-dap] launch the adapter from the workspace folder. (#140604)
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.
1 parent 91a45a3 commit 2523a83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export async function createDebugAdapterExecutable(
184184
...configEnvironment,
185185
...env,
186186
},
187+
cwd: workspaceFolder!!.uri.fsPath,
187188
};
188189
const dbgArgs = await getDAPArguments(workspaceFolder, configuration);
189190

0 commit comments

Comments
 (0)