9. Basic Debugging

Overview

In this chapter, we will look at basic debugging methodologies. We will look at some proactive measures that we can take to reduce the number of bugs that we introduce into our program. Once we understand these measures, we will investigate the ways in which we can locate a bug.

You will be able to acquaint yourself with debugging in Go and implement various ways to format printing. You will evaluate various techniques of basic debugging and find the general location of a bug in the code. By the end of the chapter, you will know to print out variable types and values using Go code and also log the state of an application for debugging purposes.

Introduction

As you develop software programs, there are going to ...

Get The Go Workshop now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.