11
Bug-Busting Debugging Skills
Overview
In this chapter, we will look at basic debugging methodologies. We will look at some proactive measures we can take to reduce the number of bugs 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 code. By the end of the chapter, you will know how to print out variable types and values using Go code and log the state of an application for debugging purposes. You will also see what debugging measures are available in different or ...
Get Go Programming - From Beginner to Professional - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.