Unit 1 - Lesson 24 - Debugging - Breakpoints and Watchpoints

Higher Computing Science Course Coverage Podcasts by Mr Graham

Episode notes

Welcome to our final episode on debugging! Today, we're covering Period 24, and we'll be discussing two powerful tools for finding errors in your code: breakpoints and watchpoints. Our goal is to help you describe and exemplify breakpoints and watchpoints and show you how to use them effectively.

Using Breakpoints and Watchpoints

We'll start by explaining what breakpoints are: they are designated stopping points in your code. When you run your program in debug mode, it will pause at a breakpoint, allowing you to inspect the values of variables at that exact moment. We'll show you how to set and use breakpoints in a tool like Thonny.

Next, we'll introduce watchpoints. Watchpoints are similar to breakpoints, but they stop t ... 

 ...  Read more