The second you launch a Go routine, gdb becomes useless.
How do you debug then? (I'm not a Go coder, tho I'm familiar a bit with it)
Oh, that's simple. We gophers don't make any mistake. Ever. It makes our lives easier.
Re:Go best practices, six years in
by jsmthrowaway on Sunday May 01, 2016 @11:02PM
(#11608990)
This is wrong. The answer is obviously "Go is debugged in production with extensive logging," so I question whether you're actually a gopher.
See another answer in this thread, https://news.ycombinator.com/item?id=11607829.
Can't you use gdb with Go? https://golang.org/doc/gdb