Skip to content

Commit de402df

Browse files
docs: use DBG instead of GOGCFLAGS to build in debug mode
1 parent b3fc4bf commit de402df

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
@@ -357,10 +357,10 @@ The Kubernetes build system defaults to limiting the number of reported Go compi
357357
make WHAT="cmd/kubectl" GOGCFLAGS="-e"
358358
```
359359

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

362362
```sh
363-
make WHAT="cmd/kubectl" GOGCFLAGS="-N -l"
363+
make WHAT="cmd/kubectl" DBG=1
364364
```
365365

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

0 commit comments

Comments
 (0)