Skip to content

Commit 788f9f3

Browse files
authored
Merge pull request #6910 from sreekaransrinath/dbg-not-go-flags
Update docs: recommend setting DBG instead of GOGCFLAGS to make in debug mode
2 parents 62896b3 + de402df commit 788f9f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contributors/devel/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,10 @@ The Kubernetes build system defaults to limiting the number of reported Go compi
362362
make WHAT="cmd/kubectl" GOGCFLAGS="-e"
363363
```
364364

365-
If you need to use debugging inspection tools on your compiled Kubernetes executables, add `-N -l` to `GOGCFLAGS`. For example:
365+
If you need to use debugging inspection tools on your compiled Kubernetes executables, set DBG=1. For example:
366366

367367
```sh
368-
make WHAT="cmd/kubectl" GOGCFLAGS="-N -l"
368+
make WHAT="cmd/kubectl" DBG=1
369369
```
370370

371371
To cross-compile Kubernetes for all platforms, run the following command:

0 commit comments

Comments
 (0)