Kubrio.
All concepts

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.

the number — how many times
the picture — what to do

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.

ExampleRight ×2, then up ×2 — no bugs

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

3
1
1

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

Next: World 2 · EventsWhat is an event?
Every world← See all 30 concepts

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.

Ingenious projects that inspire kids to make things — until they find the thing only they could make.
Ages 6–13.
Explore Games & Simulators projects or explore all the projects