mirror of
https://github.com/golang/go
synced 2024-11-23 15:00:03 -07:00
cmd/go: document that 'go run' strips debug info
Change-Id: Ie7293a33862853ac56ee0a9017b201d8ff0ba1f0 Reviewed-on: https://go-review.googlesource.com/c/go/+/392574 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
1178255f85
commit
4e26ab0ed8
@ -1599,6 +1599,10 @@
|
||||
// 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'.
|
||||
|
@ -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'.
|
||||
|
Loading…
Reference in New Issue
Block a user