Issue 174324
Summary "Unimplemented" popup when using LLDB-DAP VSCode extension on a mixed C++ / Swift project on Windows
Labels new issue
Assignees
Reporter natinusala
    I have an unusual project setup in which a build a Swift library linked against a C++ project (using Swift native C++ interop). It's unusual because the Swift DLL is linked against the .lib generated from the .exe. The executable then loads the library at runtime (using `LoadLibrary`) and calls the Swift methods (using the generated Swift/C++ interop header and a trick to make it compatible with explicit loading).

Anyway, when I try to debug the .exe (which is a C++ project) using LLDP-DAP on VSCode (with a `lldb-dap` task), it doesn't start and eventually I have a native popup that says "Unsupported" and I can't do anything more:

<img width="368" height="136" alt="Image" src="" />

Clicking either buttons cancel the debugging session. If I click on "Open launch.json" it just shows me my launch configuration.

I tried looking for logs but I couldn't find any relevant. Please tell me if there is somewhere specific to look and I'll give the logs

Notes:

- The VSCode extension works fine when debugging regular Swift projects (using the task from the Swift extension)
- I am also able to run lldb and debug the project normally using the command line so I suspect this is either a VSCode or LLDB-DAP problem
- In my settings I am using the lldb-dap binary from the Swift toolchain. If I remove the setting and let the stock lldb from my generic LLVM install run, the session starts fine but Swift debugging doesn't work (as expected)

Versions:
- VSCode: 1.104.1
- LLDB-DAP extension: 0.5.20260103
- lldb-dap binary from Swift (the one that doesn't run): 
```
lldb-dap: LLVM (http://llvm.org/):
  LLVM version 21.1.6
  Optimized build with assertions.
liblldb: lldb version 21.1.6
Swift version 6.3-dev (LLVM 8322c7222063676, Swift d1735f66f43c37f)
```
- lldb-dap binary from LLVM (the one that runs but cannot debug Swift) :
```
lldb version 18.1.8
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to