Session 3.4

Debug It! Fix the Problems

Help! Can you debug these five scratch programs?

In this activity, you will investigate what is going awry and find a solution for each of the five Debug It! challenges.

In this project, the Scratch Cat teaches Gobo to meow. But when it's Gobo's turn to try, Gobo stays silent. How do we fix the program?

In this project, the Scratch Cat is supposed to count from 1 to the number the user provides. But the Scratch Cat always counts to 10. How do we fix the program?

In this project, the Scratch Cat is doing roll call with Gobo's friends: Giga, Nano, Pico, and Tera. But everything is happening all at once! How do we fix the program?

In this project, the Scratch Cat and Gobo are practicing their jumping routine. When Scratch Cat says "Jump!", Gobo should jump up and down. But Gobo isn't jumping. How do we fix the program?

In this project, the scene changes when you press the right arrow key. The star of the project -- a dinosaur -- should be hidden in every scene, except when the scene transitions to the auditorium backdrop. In the auditorium, the dinosaur should appear and do a dance. But the dinosaur is always present and is not dancing at the right time. How do we fix the program?

Feeling Stuck?

  • Make a list of possible bugs in the program.
  • Keep track of your work! This can be a useful reminder of what you have already tried and point you toward what to try next.
  • Share and compare your problem finding and problem solving approaches with a neighbor until you find something that works for you!

Finished?

  • Discuss your testing and debugging practices with a partner. Make note of the similarities and differences in your strategies.
  • Add code commentary by right clicking on blocks in your scripts. This can help others understand different parts of your program!
  • Help a neighbor!