Debugging Basics

Scratch Blocks
Find the Bug
Movement Problems
Logic & Thinking
100

What does debugging mean?

 Fixing mistakes in code

100

Which block makes a sprite move forward?

 Move ( ) steps

100

Sprite is not moving at all

Missing “when green flag clicked”

100

Sprite goes the wrong direction

Wrong turn or direction value

100

What is a sequence?

Steps in order

200

When should you test your program?

After making changes

200

Which block repeats actions?

Repeat block

200

Sprite spins forever

 Loop missing stop or condition

200

Sprite keeps crashing into wall

 No stop or control block

200

What is a loop?

Repeating actions

300

What should you fix first if multiple things are wrong?

One problem at a time

300

Which block starts most programs?

👉 When green flag clicked

300

Sprite moves too fast

 Speed too high or no wait block

300

Sprite moves too slow

Speed too low or too many wait blocks

300

What is a condition?

If something happens, then do something

400

What is a “bug”?

An error or problem in the code

400

What block stops all movement?

Stop (all)

400

Sprite disappears

Wrong coordinates or “hide” block used

400

Sprite won’t stop moving

Missing stop block or loop issue

400

What does “if-then” do?

 Checks a condition and runs code

500

Why is debugging important?

It helps your program work correctly

500

Which block helps control direction?

Turn ( ) degrees

500

Nothing happens when clicked

Wrong event block (not green flag or sprite click)

500

Sprite jitters or shakes

 Conflicting movement commands

500

Why use “wait” blocks?

To control timing