Golang gdb: Difference between revisions

From wikinotes
(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 -->")
(No difference)

Revision as of 16:09, 26 June 2022

Instructions for debugging go with gdb.
Instructions vary by compiler

gc

If compiled with gc (default).

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