VP - Debugging and Testing in Scratch Lesson

Debugging and Testing in Scratch

As you begin to feel comfortable programming with Scratch, you may decide to create your own blocks of code but realize that the script does not execute as you expected.  Begin by inspecting the scripts and think from a computer’s perspective.  Remember, computers do not think like humans.  Check variables and operators and make updates as needed.  It is a best practice to add comments, so you and other viewers of your code are aware of the issues that occurred, and the updates made.  Finally, test the code after updates have been made.

Inspect scripts then check values and operators then test code.

It is also a good practice to apply the debugging steps introduced in the Problem Solving Module.  The checklist below reflects those steps.

Debugging Checklist

[CC BY 4.0] UNLESS OTHERWISE NOTED | IMAGES: LICENSED AND USED ACCORDING TO TERMS OF SUBSCRIPTION