Learning objective

  • To debug algorithms by spotting and correcting errors.

Success criteria

  • I can describe what debugging is.
  • I can spot
Lock

This content is for subscribers only. Join for access today.

National curriculum

Computing

Pupils should be taught to:

  • Understand
Lock

This content is for subscribers only. Join for access today.

Before the lesson

Lock

This content is for subscribers only. Join for access today.

Lesson plan

Recap and recall

Explain that the children will talk with a partner about the statement on the slide and give a reason for their answer. Show the Presentation: Explain the answer and read the statement aloud. Arrange the children in pairs and allow time for discussion.

Lock

This content is for subscribers only. Join for access today.

Adaptive teaching

Pupils needing support:

  • Could use the Resource: Broken robot (support), which shows the bugs in a grey box, so they can focus on how to fix them.
  • Should use the Activity: Dance bugs (support) to practise spotting and correcting errors in a structured example (it has an example dance routine for the children to add a bug to and a bottom section to cut off to help a partner identify where a bug has been introduced).
  • Could watch an adult model a dance algorithm with a deliberate bug to support identifying missing, incorrect or out-of-order commands.
  • Could watch another pair complete the dance bugs activity first to give them ideas.

Pupils working at greater depth:

  • Should create algorithms that include different types of bugs and explain why they cause the algorithm to fail.
  • Should explain in detail why an algorithm does not work by identifying where the sequence breaks.
  • Should propose the most effective fix by making the smallest change and explaining why it works.
Lock

This content is for subscribers only. Join for access today.

Assessing progress and understanding

Pupils with a secure understanding can:

  • Describe the process of debugging.
  • Spot bugs and
Lock

This content is for subscribers only. Join for access today.

Vocabulary definitions

  • bug

    An error that stops an algorithm from working correctly.

  • debugging

    Finding and fixing bugs in an algorithm.

Lock

This content is for subscribers only. Join for access today.

Find out more

Maintained by: Kapow Primary team

_
Please don’t screenshot or copy images from this page.
Kapow Primary resources are created by teachers and protected by copyright. Copying images or slides into your own presentations (for example using the Snipping Tool) counts as reproducing the resource and isn’t permitted under the Kapow licence.
This resource is being accessed through your school’s Kapow licence.
Thank you for respecting the work of the teachers who create these materials.