Lesson 5: Debugging directions

Children are given maps and a set of directions with mistakes or ‘bugs’ in them which they have to debug so that they can reach the destination

Before the lesson

Download classroom resources

Learning objective

  • To know how to debug an algorithm

National curriculum

Pupils should be taught to:

  • Understand what algorithms are, how they are implemented as programs on digital devices, and that programs execute by following precise and unambiguous instructions
  • Create and debug simple programs
  • Use logical reasoning to predict the behaviour of simple programs

Success criteria

Cross-curricular links

Attention grabber

Main event

Differentiation

Pupils needing extra support: Should be encouraged to step and turn according to the instructions on the map.

 

Pupils working at greater depth:  Could create their own buggy algorithms (and the correct answer) to match the maps.

Wrapping up

Assessing pupils' progress and understanding

Vocabulary

Created by:
Siobhan Morgan,  
Computing specialist
Head of Computing at Exeter Junior School, Siobhan Morgan has nine years of computing teaching experience as well as experience from her role of ‘Subject Genius for Computing’ on TES. Siobhán enjoys spending time with her family and searching for the Gruffalo…
Find out more