Skip to content

Always register the swift-lldb debug adapter provider #886

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

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

award999
Copy link
Contributor

@award999 award999 commented Jun 12, 2024

Issue: #848

We can always register this and that way the user does not need to reload the window when use change to using lldb-dap. Now they can use the updated debug configurations right away

@award999 award999 self-assigned this Jun 12, 2024
Copy link
Contributor

@adam-fowler adam-fowler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we shouldn't register it if it doesn't exist?

Issue: swiftlang#848

We can always register this and that way the user does not need
to reload the window when use change to using lldb-dap. Now
they can use the updated debug configurations right away

If the lldb-dap path doesn't exist or it is not in the toolchain,
the debug session bales without doing anything, so we'll check
if lldb-dap exists and show error message if it doesn't
@award999 award999 force-pushed the lldb-dap-provider branch from 56f4f6b to b23f57e Compare June 13, 2024 13:40
@award999
Copy link
Contributor Author

@adam-fowler the debug session does nothing if the path does not exist or cannot find in toolchain, so added a check to verify that the the debug adapter does exist so the user gets an error message instead of silently failing. I see that we are already listening to changes to swift.debugger.useDebugAdapterFromToolchain and swift.debugger.path settings, else where so seemed a little more complex than necessary to listen to this again to register the debug provider

@award999 award999 merged commit 1d9e88a into swiftlang:main Jun 13, 2024
2 checks passed
@award999 award999 deleted the lldb-dap-provider branch June 14, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants