Skip to content

Commit

Permalink
cmd/go: document that 'go run' strips debug info
Browse files Browse the repository at this point in the history
Change-Id: Ie7293a33862853ac56ee0a9017b201d8ff0ba1f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/392574
Trust: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>
  • Loading branch information
ianlancetaylor committed Mar 15, 2022
1 parent 1178255 commit 4e26ab0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/go/alldocs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/cmd/go/internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ for example 'go_js_wasm_exec a.out arguments...'. This allows execution of
cross-compiled programs when a simulator or other execution method is
available.
By default, 'go run' compiles the binary without generating the information
used by debuggers, to reduce build time. To include debugger information in
the binary, use 'go build'.
The exit status of Run is not the exit status of the compiled binary.
For more about build flags, see 'go help build'.
Expand Down

0 comments on commit 4e26ab0

Please sign in to comment.