Debugging C++ Programs
Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=wxxytSVTQsY
Three steps to debugging:
1) Tooling (ASAN, UBSAN, etc.) are great for automatically detecting problems. I forgot to mention cppcheck, but that's also a good one I use all the time, which finds a lot of bugs at compile time.
2) Cout all the things. Much maligned, but can be a very fast way to hunt down a bug quickly.
3) Debugger. I showed today how to use GDB. There's a lot more to GDB (like... a lot), this was just a super brief overview of the most important steps I take within it.
Other Videos By Bill Kerney
2025-01-27 | Learning C for C++ Programmers (1 hour) |
2024-12-01 | The Basics of Python in 45 Minutes |
2024-09-09 | CURE - Course Based Undergraduate Research Experience |
2024-05-10 | Final Review - All our Data Structures in a Nutshell |
2024-05-08 | C++: Dynamic Programming |
2024-05-06 | Final Project: Alcatraz-41 |
2024-05-06 | Debugging C++ Programs |
2024-05-03 | Graph Theory |
2024-05-01 | C++: TCP Streams Networking in 5 minutes (+25 minutes of discussion) |
2024-05-01 | C++: Dear ImGUI in 5 Minutes (+25 minutes of discussion) |
2024-05-01 | Making a Thread Safe version of a data structure |
2024-04-26 | C++ Multithreading Part 2: Mutexes and Lock_Guard |
2024-04-26 | RPG42: Project Guidelines |
2024-04-25 | C++ Multithreading: OpenMP, Atomics, Threads |
2024-04-22 | C++ Error Handling: Exceptions |
2024-04-22 | Unix and Vim Quiz #3 |
2024-04-19 | Vim Macros |
2024-04-19 | C++ Bitwise Part 2 |
2024-04-17 | C++ Bitwise |
2024-04-15 | Huffman Coding (Conceptual) |
2024-04-12 | Tries, and inspiring words |