March 2024
Beginner
336 pages
7h 43m
English
Content preview from Coding with AI For Dummies
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial



Chapter 7
Finding and Eliminating Bugs
IN THIS CHAPTER
Finding, identifying, and reporting bugs
Using Lint to prevent bugs
Using AI to find bugs
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.
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.
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.