How to run it in class
10 min- 1Run itIt should print 6. What does it print?
- 2Find the lineCircle the line to change.
- 3Fix and runFix it and check it prints 6.
Why it works
Finding a bug in short code teaches debugging, a skill every coder needs. Circling the line first makes students think before they change anything.
Ideas to adapt it
- Add two bugs for a challenge.
- Let students add a bug for a partner to find.
- Use a bug from a real student's code.
Questions
How long does it take?
About 10 minutes. It stays saved in your lesson, so you can come back to it next time.
Can I use it with one student?
Yes. Hide a bug in their own code for them to find.
Do students need an account?
No. Go live and share the link or the code. Students join from any device with nothing to install, and you can give each of them their own copy.
Is this starter free?
Yes. Open it, change anything and teach with it on the free plan, which has every feature and live lessons with up to 5 students. Try it first needs no account.
More coding starters
See all
Put the steps in order
Sticky notes to sort into an algorithm
Use this starter
Swap two values
A puzzle about variables
Use this starter
Write a function
Fill in a function and test it
Use this starter



