Cover page by David Chisnall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required