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

fix: automatically set attached mode for delve based on OS #86

Merged
merged 4 commits into from
Jul 4, 2024
Merged

fix: automatically set attached mode for delve based on OS #86

merged 4 commits into from
Jul 4, 2024

Conversation

PerMalmberg
Copy link
Contributor

Hi,

Here's a change to automatically set the attached mode for delve so the end-user doesn't have to.

I added it to the config example too but maybe that entire line should be removed with this fix in place, let me know if I should do that.

Br,

@PerMalmberg
Copy link
Contributor Author

@leoluz What is the actual issue referenced in the current code? For me it crashed if not setting this flag to false in Windows, but with dlv 1.22.1 this seems to no longer be true.

@PerMalmberg
Copy link
Contributor Author

@leoluz What is the actual issue referenced in the current code? For me it crashed if not setting this flag to false in Windows, but with dlv 1.22.1 this seems to no longer be true.

Scratch that, it still happens if not false. I must not have reloaded settings.

@gustavosinacio
Copy link

This fixes the config to work out of the box for different platforms. It seems to be the issue faced in this stackoverflow post. This probably should be merged.

@leoluz leoluz changed the title Automatically set attached mode for devle. fix: automatically set attached mode for delve based on OS Jul 4, 2024
Copy link
Owner

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

LGTM

@leoluz leoluz merged commit 3999f07 into leoluz:main Jul 4, 2024
2 checks passed
@PerMalmberg PerMalmberg deleted the auto-set-attached-mode branch July 5, 2024 20:06
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.

3 participants