The tool’s interface below is still in French. The interface is being translated by Google Translate.
Bug hunt
Each script contains an error: read what it should do, find the bug, then check with the explanation and the fixed script.
En ligne
Fiche à imprimer
How to use the debugging exercise generator
Scratch scripts containing one error to find: expected behavior, hint, explanation of the bug and fixed script.
-
Read the script
And what it should do.
-
Ask for a hint
Before seeing the fix.
-
Print
Student sheet and answer key on separate pages, or save as a PDF.
About the debugging exercise generator
Debugging is a skill in its own right: running the program in your head, comparing it with what is expected, isolating the faulty line.
The twelve bugs cover the most common mistakes: a miscounted loop, a reversed condition, a reset variable, the order of blocks.
Frequently asked questions about the debugging exercise generator
Do I need a Scratch account?
No. The blocks are drawn in the page; to program, Scratch’s online editor can also be used without an account.
Can students work online?
Yes: each bug has its “Hint” and “Show the fix” buttons.
Can I use these sheets in class?
Yes, freely and at no cost: the documents you generate are yours, with no account and no watermark.