Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depend on the llvm official lldb-dap extension #1246

Open
ashgti opened this issue Dec 4, 2024 · 6 comments
Open

Depend on the llvm official lldb-dap extension #1246

ashgti opened this issue Dec 4, 2024 · 6 comments
Labels
debugging enhancement New feature or request

Comments

@ashgti
Copy link

ashgti commented Dec 4, 2024

Currently vscode-swift depends on vadimcn.vscode-lldb but there is an official lldb-dap extension published by the llvm org as llvm-vs-code-extensions.lldb-dap see https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.lldb-dap

Should this depend on that extension instead?

@plemarquand
Copy link
Contributor

The lldb-dap binary actually ships in the Swift toolchains as of Swift 6.0. You can opt in to it by setting the swift.debugger.useDebugAdapterFromToolchain setting to true. The long term plan is to phase out the dependency on third party extensions but because the extension supports back to Swift 5.9 we're reliant on it until we can drop support all the way up to 6.0.

I know @matthewbastien looked at the official lldb-dap extension at some point and I remember it didn't fully work for the extension's use cases with older Swift toolchains.

@matthewbastien
Copy link
Member

The long term plan is to drop support for CodeLLDB and use the lldb-dap extension since it's officially supported by LLVM and the executable is shipped with the Swift toolchain. However, it'll require some work in both extensions to be able to co-ordinate between the two.

Since lldb-dap was only recently added to the Swift toolchain Paul is correct in that we cannot use it to support projects older than 6.0.

@plemarquand
Copy link
Contributor

@matthewbastien thanks, is there an existing issue for that or should we track with this one?

@adam-fowler
Copy link
Contributor

Last time I checked lldb-dap still had some stability issues. Has a comparison been done comparing the debugging experience using the two debug adapters.

@matthewbastien
Copy link
Member

matthewbastien commented Dec 5, 2024

@plemarquand I haven't created the issues for debug yet. So, let's use this one.

@matthewbastien
Copy link
Member

Last time I checked lldb-dap still had some stability issues. Has a comparison been done comparing the debugging experience using the two debug adapters.

Yeah, there are definitely still some gaps to investigate. We're going to be working with some folks that help maintain lldb to iron out some of the issues with lldb-dap before we switch over.

@award999 award999 moved this from Unscreened to Backlog in Swift Extension for Visual Studio Code Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugging enhancement New feature or request
Development

No branches or pull requests

5 participants