This week’s topics
Debugging and testing implementations; review and practice problems
- Debugging implementations with ipdb
- Review and practice problems
What you will be able to do
- 4.4 Use debugging to correct errors in algorithmic implementation.
Activity
Start with this week’s 4 videos, then: Seminar, guided reading and a short written task: use debugging to correct errors in algorithmic implementation.
Study materials
Videos
- Testing and refining a programming project · Oak National Academy, Key Stage 4 (GCSE level) · for registered students
- Syntax, Runtime and Logical Errors in Python · YouTube · Learn Learn Scratch Tutorials · 8 min · for registered students
- Python Tutorial: Debugging logic errors by hand tracing your code · YouTube · Professor Hank Stalica · 14 min · for registered students
- 31. OCR A Level (H046) SLR6 - 2.2 Test data & user feedback · YouTube · Craig'n'Dave · 13 min · for registered students
Further resources
- Think Python, Appendix A: Debugging · PDF · Downey, Think Python 2e (Green Tea Press), Appendix A: syntax, runtime and semantic (logic) errors and how to find them, pp. 193–200 · for registered students
- Python Notes for Professionals, ch. 103: Debugging · PDF · GoalKicker Python Notes for Professionals, ch. 103: using the pdb debugger and breakpoints, pp. 496–498 · for registered students
- Introduction to Python Programming, 1.6: Error messages · PDF · OpenStax Introduction to Python Programming (2024), 1.6: reading Python error messages and tracebacks, pp. 23–26 · for registered students
- 37 million compilations: investigating novice programming mistakes on large-scale student… · Open-access article · Altadmri & Brown (2015), SIGCSE '15, ACM. The most frequent novice errors from 37 million compilations. · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.