Use GDB to debug CMD /compile main.go

I want to use GDB to watch the go source code compile process.I don’t know how to do it.I would like to see some information on how the compiler compiles source code into run files.

Not sure about GDB. But the `go build’ command supports build flags. Maybe this could help:

-x
print the commands.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.