
Unit 1 - Lesson 24 - Debugging - Breakpoints and Watchpoints
カートのアイテムが多すぎます
カートに追加できませんでした。
ウィッシュリストに追加できませんでした。
ほしい物リストの削除に失敗しました。
ポッドキャストのフォローに失敗しました
ポッドキャストのフォロー解除に失敗しました
-
ナレーター:
-
著者:
このコンテンツについて
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 the program only when the value of a specific variable changes. This is incredibly useful for tracking down unexpected changes in your code. We'll also discuss the limitations of watchpoints in a standard Python IDLE and explain why you might need a more advanced IDE to use them.
Hands-on Practice & Assessment ✍️
You'll get hands-on experience by practicing with breakpoints on programs from previous tasks, specifically Task 10, Problem 3a and 3b from "Software Design and Development Booklet v1.4.pdf". These exercises will help you get comfortable with using this powerful debugging technique to pinpoint logic errors. By the end of this episode, you'll be able to use breakpoints and watchpoints to make your debugging process more efficient and effective.