go-debug-setup

command module
v0.0.0-...-f4fa2a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

go-debug-setup

Go Report Card

A command-line tool to help you set up debugging for Go programs with Delve (dlv).

This tool extracts source file names from a compiled Go binary with debug information. This information can be useful for configuring Delve to correctly locate source files when debugging.

Installation

go install github.com/gonzojive/go-debug-setup

Example

go-debug-setup files --executable <path-to-go-binary>

This will output a list of source files that were used to compile the binary. You can then use this list to configure your Delve launch configuration to ensure that Delve can find the source files.

Why is this helpful?

When debugging Go programs with Delve, it sometimes struggles to find the correct source files, especially if the binary was built in a different environment or directory than the one you're debugging in. This tool helps you identify the exact source files that were used to compile the binary, making it easier to configure Delve and avoid "file not found" errors during debugging.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the Apache 2 License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL