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

Documentation: document how to debug runtime with Delve #3234

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

aarzilli
Copy link
Member

Add FAQ entry to document how to debug the Go runtime using Delve.

Also add table of contents to FAQ.

_scripts/gen-faq-toc.go Outdated Show resolved Hide resolved
_scripts/gen-faq-toc.go Outdated Show resolved Hide resolved
_scripts/gen-faq-toc.go Outdated Show resolved Hide resolved
)

func spliceDocs(docpath string, docs []byte, outpath string) {
docbuf, err := ioutil.ReadFile(docpath)
Copy link
Contributor

Choose a reason for hiding this comment

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

ioutil is deprecated since Go 1.16. Let's use os.ReadFile instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not worth compromising compilation on older versions of Go for a deprecation.

Add FAQ entry to document how to debug the Go runtime using Delve.
Also add table of contents to FAQ.
@aarzilli
Copy link
Member Author

aarzilli commented Jan 3, 2023

Done.

Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

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

LGTM

@derekparker derekparker merged commit 709da9a into go-delve:master Jan 3, 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
Development

Successfully merging this pull request may close these issues.

3 participants