Writing a bug report from a trace
A short note giving the input used, the expected and actual output, the trace row where it goes wrong, the cause and the correction. Use 'because' to explain the cause to a classmate.
Understanding Writing a bug report from a trace in ACARA Digital Technologies Years 7–8
What it does: Naming the row and the value as it appears in the trace table is the evidence that shows where the bug starts. Starting a sentence with because links the wrong value in the trace to the exact mistake in the algorithm. A good bug report gives the input, the expected and actual output, the trace row, the cause and the correction. 'It is broken' gives none of these. Evidence names a specific row and the values in it. A feeling or opinion is not evidence. A correction must say exactly what to change and what to change it to. The input shows how to repeat the problem. Without it, no one can run the same trace.
Common mistakes: A bug report must give the actual output, and it must differ from the expected output. Here the actual output should be 10, because the total was never divided by the count. The input line must match the rest of the report. An expected output of 3 only makes sense if the input was 3 correct answers, not 0.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 482–519) and word search (Modules 420–519).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
bug reportFill in the Blanks
Spot the Error
Student with a class code? Join your class →