Skip to content

Commit 4238238

Browse files
authored
[lldb-dap] Fix: Could not find DAP in path (llvm#126903)
Fixes llvm#120839
1 parent 4078b11 commit 4238238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ async function findDAPExecutable(): Promise<string | undefined> {
5050
const executable = process.platform === "win32" ? "lldb-dap.exe" : "lldb-dap";
5151

5252
// Prefer lldb-dap from Xcode on Darwin.
53-
const xcrun_dap = findWithXcrun(executable);
53+
const xcrun_dap = await findWithXcrun(executable);
5454
if (xcrun_dap) {
5555
return xcrun_dap;
5656
}
5757

5858
// Find lldb-dap in the user's path.
59-
const path_dap = findInPath(executable);
59+
const path_dap = await findInPath(executable);
6060
if (path_dap) {
6161
return path_dap;
6262
}

0 commit comments

Comments
 (0)