Chapter 7

Finding and Eliminating Bugs

IN THIS CHAPTER

Bullet Finding, identifying, and reporting bugs

Bullet Using Lint to prevent bugs

Bullet Using AI to find bugs

Bullet Verifying automated bug fixes

The term debugging as it relates to computers dates back to Admiral Grace Hopper, who worked at Harvard University in the 1940s. A colleague of hers found a moth stuck in a computer that was keeping it from working correctly, and she remarked that they were “debugging” the system.

Technical Stuff Although glitches in mechanical systems were called bugs as early as 1887, when Thomas Edison used the term, Grace Hopper is attributed with introducing the term as it relates to computers and computer programming.

Today, you're much less likely to encounter physical bugs that will keep your programs from working correctly, but these defects in your code are still just as pesky and sometimes as difficult to spot.

In this chapter, you learn how to use AI tools to assist you with the process of debugging your code.

Knowing Your Bugs ...

Get Coding with AI For Dummies 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.