17. Debugging Go
In an ideal world, you would write Go code, compile it, and then it would work perfectly the first time. In fact, you’ll probably find that this is quite common. Go is designed so that there is little ambiguity in the source code, eliminating a lot of common bugs.
Go is still a relatively young language, so it doesn’t have quite the same level of debugging support of more mature languages. People have been writing buggy C and C++ code for decades, so there are lots of tools available to help them.
Using a Debugger
Go versions prior to 1.0 included a debugger called ogle. This is named after a company named something like Go ogle that has funded a lot of the development of Go. This was not ready in time for the 1.0 release, so ...