Python Basics: Finding and Fixing Code Bugs (Overview)
Everyone makes mistakes—even seasoned professional developers!
IDLE is pretty good at catching mistakes like syntax errors and run-time 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 was intended.
Logic errors cause unexpected behaviors called bugs. Removing bugs is called debugging, and a debugger is a tool that helps you hunt down bugs and understand why they’re happening.
Knowing how to find and fix bugs in your code is a skill that you will use for your entire coding career!
In this Python Basics video course, you’ll:
- Learn how to use IDLE’s Debug Control window
- Practice debugging on a buggy function
- Learn alternative methods for debugging your code
00:01 Everyone makes mistakes, even seasoned professional developers. Welcome to Python Basics: Finding and Fixing Code Bugs. It’s okay to make mistakes. It is actually very common and normal.
00:15 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.
00:35 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.
00:49 Knowing how to find and fix bugs in your code is a skill that you will use for your entire coding career.
00:57 In this video course, you will learn how to use IDLE’s Debug Control window, and you will practice debugging on a buggy function.
Become a Member to join the conversation.