Save this video — free

8.1 - Debugging (2026-10-16)

Chris Bourke · 32:36 · Watch on YouTube

8.1 - Debugging (2026-10-16) Watch on YouTube →

Overview

Chris Bourke demonstrates GNU GDB as a way to trace C program behavior, inspect memory and variables, and diagnose bugs that a segmentation-fault message alone cannot explain. Using a random-array and average example, he finds and fixes a missing return, an uninitialized sum, an off-by-one loop bound, integer division truncation, and a memory leak, while showing how compiler warnings and Valgrind complement debugging.

Key takeaways

Chapters

0:00 Opening “Faith” Musical Interlude
3:19 Starting GDB with Debug Symbols, Arguments, and Breakpoints
12:11 Finding Array and Average Bugs with GDB
21:07 Using Valgrind to Confirm Memory Safety and Cleanup
23:40 GDB Command Reference: Breakpoints, Watches, and Stack Frames
30:37 Upcoming Tic-Tac-Toe Bug Hunt and Graphical Debugging

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Chris Bourke.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.