In this chapter, you learned about IDLE’s Debug window. You saw how to inspect the values of variables, insert breakpoints, and use the Step, Go, Over, and Out buttons.
You also got some practice debugging a faulty function using a four-step process for identifying and removing bugs:
- Guess where the bug is located.
- Set a breakpoint and inspect the code.
- Identify the error and attempt to fix it.
- Repeat steps one through three until the error is fixed.
Debugging is as much an art as it is a science. The only way to master debugging is to get a lot of practice with it!
If you’d like to learn more about the concepts covered in this course, then check out:
- Real Python Podcast Episode 71: Start Using a Debugger With Your Python Code
- Python Debugging With Pdb - Real Python Tutorial
- Python Debugging With pdb - Real Python Video Course
- Getting Started With Python IDLE - Real Python Tutorial
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.