8. Debugging with Ruby

Overview

By the end of this chapter, you will be able to implement standard logging practices to display application data; create log files and use log levels to segregate and filter logs; perform basic debugging using byebug and Visual Studio Code and use breakpoints and expressions to debug code.

Introduction

In the previous chapter, we learned about extending the functionality of our application with gems, interacting with the filesystem with the File and IO classes, importing external data using CSV files, and how to wrap all this up in a nicely encapsulated service class.

Software bugs are a fact of life in software engineering. No matter your skill level, bugs always find a way to show up. We can, however, ...

Get The Ruby Workshop 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.