There seems to be a lack of documentation and tutorials around debugging golang using gdb. Here is a short tutorial to get people started. Here is our golang example project. - gdbtest/ - main.go Inside main.go we have package main import "fmt" type MyStruct struct { x string i int f float64 m map[string] int64 } func main() { x := "abc" i := 3 fmt.Println(i) fmt.Println(x) ms := &MyStruct{ x: "cb
![Debugging golang in GDB | cevaris](https://cdn-ak-scissors.b.st-hatena.com/image/square/058de8488f53071a5d0e02cbfb3f503ea74e2b65/height=288;version=1;width=512/https%3A%2F%2Fcevaris.files.wordpress.com%2F2015%2F03%2Fscreen-shot-2015-03-08-at-11-16-55-am.png)