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

docs: add note about overriding ddev version when debugging go #272

Merged
merged 4 commits into from
Nov 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/blog/golang-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Once you've have your IDE working, you can start debugging.
* Change its name to the command you want to work on, like `ddev list`
* Change the "Program Arguments" to the arguments to `ddev`, like `list`
* Change the "Working Directory" to a valid DDEV project
* (optional) If you need to override the version of the built `ddev` you can add `-ldflags " -extldflags -static -X 'github.com/ddev/ddev/pkg/versionconstants.DdevVersion=v1.23.5-goland'"` - version `v1.23.5-goland` could be whatever you need.
* Set a breakpoint by clicking to the left of a line, for example in `cmd/ddev/cmd/list.go`
* Click the `Run` or `Debug` button on the top bar.

Expand Down