From 8e0a4b10af627ee0712e860354dae20ef612d36c Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Fri, 8 Nov 2024 15:35:14 -0300 Subject: [PATCH 1/4] docs: add not about overriding version --- src/content/blog/golang-debugging.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/blog/golang-debugging.md b/src/content/blog/golang-debugging.md index 5ad99377..cb86db95 100644 --- a/src/content/blog/golang-debugging.md +++ b/src/content/blog/golang-debugging.md @@ -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. From 6f1ee95a1a11728643dffd50a81e08051ff90107 Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Fri, 8 Nov 2024 15:41:21 -0300 Subject: [PATCH 2/4] mention the title of the field --- src/content/blog/golang-debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/golang-debugging.md b/src/content/blog/golang-debugging.md index cb86db95..050187f5 100644 --- a/src/content/blog/golang-debugging.md +++ b/src/content/blog/golang-debugging.md @@ -41,7 +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. + * (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'"` to "Go tool arguments" - 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. From 3177261f919323f758dee974b88a520a8aeb6e26 Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Fri, 8 Nov 2024 15:56:41 -0300 Subject: [PATCH 3/4] change modifiedDate --- src/content/blog/golang-debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/golang-debugging.md b/src/content/blog/golang-debugging.md index 050187f5..67fc719f 100644 --- a/src/content/blog/golang-debugging.md +++ b/src/content/blog/golang-debugging.md @@ -1,7 +1,7 @@ --- title: "Debugging Golang (Go) Applications" pubDate: 2024-05-17 -# modifiedDate: 2024-04-23 +modifiedDate: 2024-11-08 summary: Debugging Golang applications using GoLand or VS Code author: Randy Fay featureImage: From 86e11553fd239cd45332a1fc956a582d36eee3d8 Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Fri, 8 Nov 2024 15:58:19 -0300 Subject: [PATCH 4/4] can for could --- src/content/blog/golang-debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/golang-debugging.md b/src/content/blog/golang-debugging.md index 67fc719f..d6395da7 100644 --- a/src/content/blog/golang-debugging.md +++ b/src/content/blog/golang-debugging.md @@ -41,7 +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'"` to "Go tool arguments" - version `v1.23.5-goland` could be whatever you need. + * (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'"` to "Go tool arguments" - version `v1.23.5-goland` can 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.