(EDIT: Just a little plug: See also my course on linux commandline productivity techniques: http://www.udemy.com/command-line-productivity ) Here I quickly go through how to use CGDB to debug a Go program in an easier way than with the GDB debugger directly, since it continuously shows the code context. I cover the basic GDB commands on how to navigate the code, set breakpoints, step line-by-line
![Easier Go debugging on the command line with CGDB](https://cdn-ak-scissors.b.st-hatena.com/image/square/0656e0c4c69d5e49838502588e6e93c2e2f8ef44/height=288;version=1;width=512/https%3A%2F%2Fi.ytimg.com%2Fvi%2FOKLR6rrsBmI%2Fhqdefault.jpg)