Module 09 of 10

Build Systems & Debugging

Lessons

About This Module

Real C++ projects have many source files, so you need a way to build them consistently. This module starts with build systems: what tools like Make and Ninja do, and how CMake describes a project once so it can be built on any platform.

It then moves to debugging. You will learn how to use GDB to run a program step by step, set breakpoints, and inspect variables to find out why code does not behave the way you expect.

Watch the lessons in order, then continue on to Testing & Performance.

Lessons

4 videos
01

C++ Build Systems: Modern Tools & CMake

A beginner-friendly overview of C++ build tools such as CMake, Make and Ninja, and how they fit together.

02

Quickstart for CMake

How to set up a simple CMake project with several source files and build it.

03

GDB Basics: Debug C/C++ Programs

How to compile with debugging information, start GDB, and step through a program to find bugs.

04

Debug Breakpoints in C++ with GDB

Setting breakpoints from the command line and using commands that print values and continue automatically.