11 DEBUGGING AND ERROR HANDLING

Whether you’ve just begun programming in a new language or have been using the language for years, you’re going to have errors. Learning how to find and fix errors is an important skill, and one with which you’ll no doubt get plenty of practice! Although experience is truly the best way to master debugging, there are tools and techniques that can expedite the learning process.

The first and last sections of the chapter discuss different Ruby libraries that help to root out bugs and other problems in your Ruby code as you write it. These are the kinds of issues that arise even when the script is being properly used. The specific topics range from basic debugging skills to unit testing and profiling. All of these ...

Get Ruby: Visual Quickstart Guide 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.