Lesson 5: Debugging directions

The process of debugging is explored through maps and a set of directions with mistakes or ‘bugs’ in them, which must be debugged so that a destination is reached

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

Before the lesson

Download classroom resources

Attention grabber

Main event


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


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