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

Add delve debug binary #4239

Closed
wants to merge 2 commits into from
Closed

Add delve debug binary #4239

wants to merge 2 commits into from

Conversation

jollyrogue
Copy link

Reasons for making this change:

Delve is the major Go debugger, and it produces a __debug_bin binary by default, which isn't in the Go gitignore template.

I use delve to debug Go binaries, and I'd like to have delve's __debug_bin ignored by default.

Links to documentation supporting these rule changes:

--output string Output path for the binary. (default "./__debug_bin")

https://github.com/go-delve/delve/blob/4c1f8b4b2536beb8b06c6a6ef0b0383a7928e188/Documentation/usage/dlv_debug.md

@@ -11,6 +11,9 @@
# Test binary, built with `go test -c`
*.test

# Default Delve debug binary
__debug_bin
Copy link

@BananZG BananZG Jul 5, 2023

Choose a reason for hiding this comment

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

Suggested change
__debug_bin
__debug_bin*

There's a new change to delve to include additional string in output binary file
source: go-delve/delve@84b757a

BananZG added a commit to BananZG/gitignore that referenced this pull request Jul 6, 2023
the other 2 PRs on this are outdated and inactive:
- github#4239
- github#3530
@jollyrogue jollyrogue closed this by deleting the head repository Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants