Golang gdb

From wikinotes
Revision as of 16:09, 26 June 2022 by Will (talk | contribs) (Created page with "Instructions for debugging go with gdb.<br> Instructions vary by compiler = gc = <blockquote> If compiled with <code>gc</code> (default). <syntaxhighlight lang="bash"> go build -ldflags=-w . gdb your-executable </syntaxhighlight> </blockquote><!-- gc -->")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Instructions for debugging go with gdb.
Instructions vary by compiler

gc

If compiled with gc (default).

go build -ldflags=-w .
gdb your-executable