You are previewing The Go Programming Language Phrasebook.

The Go Programming Language Phrasebook

Cover of The Go Programming Language Phrasebook by David Chisnall Published by Addison-Wesley Professional
O'Reilly logo

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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.