Save this video free

8.1 - Debugging (2026-10-16)

Chris Bourke · 32:36 · Watch on YouTube

Part of University of Nebraska-Lincoln CSCE 155E. See all 15 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

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.

Transcript excerpt

0:40 [music] >> Well, I guess it would be nice if I could touch your body. [music] I know not everybody has got a body like you. >> [music] >> Oh, but I got to think twice before I give my heart [music] away. And I know all the games you play, but guys, I play them, too. [music] Oh, but I need some time off from [music] that emotion. Time to build my fort up up the floor. Oh, when that love >> [music] >> comes down, well, I've been warned, what it takes to storm a man, baby, but I'll show you the door. Cuz I got to have faith. >> [music] >> I got to have

1:26 faith because I got to go for faith I got to have faith the faith the faith the faith. Baby, >> [music] >> I know you're asking me to stay. Say, "Please, please, please, don't go away." You say I'm giving [music] you the blues. Baby, you mean every word you say. I can't help but think of yesterday [music] and another who tied me down to lovable you. Before this river becomes an ocean, goes >> [music and singing] >> before you throw my heart back on the floor. Oh, baby, I >> [music] >> reconsider my foolish [singing] notion. Well, I need someone to hold me, but I wait for something more.

2:13 Yes, I got to have faith. Oh, I got to have faith. >> [music] >> Because I got to have faith, faith, faith, faith. I got to have faith, faith, faith, faith, faith. >> [music] >> Oh, they said to wait, because I got to have faith. I got to have faith. >> [music] >> To have faith. Before this >> [music] >> ever >> [singing] >> comes

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

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.