Skip to content

doc: ref/gdb should mention compiler flags / go install -gcflags #3363

@the42

Description

@the42
The Documentation of Debugging Go Code
(eg. http://tip.golang.org/ref/gdb)
should mention the -N and -l* flags. Both are useful (and in case of a consistent
picture on local variables) essential.

As the go tool has settled it would also make sense to mention

go build|install|... -gcflags '-N -l'

(Btw. the documentation does mention the "-s" flag to omit debug info, so it
should mention the others influencing debug behavior too)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions