World 1 · Sequences · Guide 5 of 5Free guide
What is a bug?
Every programmer writes them. The good ones get fast at finding them.
Meet the block
A bug is a mistake in a program — the computer did exactly what the program said, but the program said the wrong thing. Finding and fixing it is called debugging.
Most bugs hide in one of those two spots: the wrong arrow, or the wrong number.
See it work
First, a program with no bugs at all. Watch every block do its job.
That's what working looks like. Now meet a program that is one block wrong.
Your turn
Now you're the programmer.
Oh no — the robot's program is broken. Can you fix it?
Get the 🤖 to the 🔋. One block is wrong.
Your program
Read the robot's program. What do you think will happen?
Blocks
Go further
Can you break the program on purpose, then fix it again?
Change an arrow or a number, press play, and watch the robot go the wrong way. Breaking it yourself is the fastest way to learn how to unbreak it.
For grown-ups
Finding and fixing what's wrong in a program is called debugging — the most useful habit in all of coding.
Keep going
Where this goes
Make a game other kids can play
The blocks on this page are a first taste. In a Kubrio project your kid builds a real game — powers, triggers, levels and all — and other kids get to play it.
