Skip to content

Commit 5ed0ad3

Browse files
authored
gobuild: add log for build argument (#4185)
set logOutput to debugger
1 parent e61c678 commit 5ed0ad3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/gobuild/gobuild.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"time"
1212

1313
"github.com/go-delve/delve/pkg/config"
14+
"github.com/go-delve/delve/pkg/logflags"
1415
)
1516

1617
// Remove the file at path and issue a warning to stderr if this fails.
@@ -128,5 +129,6 @@ func gocommandExecCmd(command string, args ...string) (string, *exec.Cmd) {
128129
allargs := []string{command}
129130
allargs = append(allargs, args...)
130131
goBuild := exec.Command("go", allargs...)
132+
logflags.DebuggerLogger().Debugf("gobuild args: %v", allargs)
131133
return strings.Join(append([]string{"go"}, allargs...), " "), goBuild
132134
}

0 commit comments

Comments
 (0)