National curriculum content
Debug programs that accomplish specific goals.
Use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms or programs.
Lesson objectives
- Spotting and correcting off-by-one bugs
- Spotting and correcting performance bugs
- Spotting and correcting multi-thread bugs
- Spotting and correcting conceptual bugs
- Spotting and correcting arithmetical bugs
- Spotting and correcting resource bugs
What we want children to know
- Correct ‘off-by-one’ errors in loops
- Improve the performance of the circle-drawing program
- Get the dialogue in the joke program to work in sequence
- Experiment with the speed variable and other facts in the racing car simulator
What skills we want children to develop
- A number of strategies for finding errors in programs
- Build up resilience and strategies for problem solving
- Increase their knowledge of and understanding of Scratch
- Recognise a number of common types of bug in software
- Debug programs that accomplish specific goals
Vocabulary
algorithm, bugs, debug, instruction, program, script