IDLE is pretty good at catching mistakes like syntax errors or runtime errors, but there’s a third type of error that you may have already experienced. Logic errors occur when an otherwise valid program doesn’t do what it was intended to do. In this course, you’ll focus on logic errors.
Logic errors cause unexpected behaviors called bugs. Removing bugs is called debugging, and a debugger is a tool that helps you find bugs and understand why they’re happening. In this video, you'll learn how to use IDLE’s Debug Control window.
This is a portion of the complete course, which you can find here:
https://realpython.com/courses/python...
The rest of the course covers:
- Debugging a Function
- Practicing Setting Breakpoints and Inspecting
- Print Debugging