

Teach students to find, explain and fix errors, not just spot them.
Debugging Mastery Workbook is a complete, ready-to-print resource with 60 original programs for OCR GCSE Computer Science J277. Each program contains deliberate errors that students must identify, explain and correct, building the code-reading and error-finding skills that programming questions reward.
What’s inside
60 debugging programs in 8 progressive parts, from single syntax slips to Part 8 challenges with up to 5 interacting errors
Model answers for all 60 programs with error line numbers, error types, explanations, corrected code, expected output and a debugging process
403 marks with a clear mark scheme: 1 mark each for identifying the line, naming the error type, explaining it and correcting it, plus output marks
Teacher notes with suggested uses, a progression guide, marking guidance and score bands
Debugging fundamentals in Part 1: the three error types, a six-step debugging method, a worked trace-table example and a checklist
Student progress tracker and an OCR Exam Reference Language quick reference
Error-type coverage table so you can target specific weaknesses
All 18 error categories covered
Syntax, logic, runtime, input validation, variables, selection, iteration, nested loops, string handling, integer and real numbers, arrays and lists, Boolean logic, off-by-one, infinite loops, incorrect conditions, incorrect operators, incorrect variable updates and algorithmic errors.
The 8 parts
Debugging Fundamentals
Selection Errors
Iteration Errors
Variables and Data Errors
Strings and Arrays
Boolean and Logic Errors
Algorithmic Errors (bubble sort, binary search, prime check, FizzBuzz)
Mixed Debugging Challenges
Plus Part 9: Complete Answers and Mark Scheme.
Every program follows the same format
Scenario → task → numbered buggy code → (a) identify the line and error type, (b) explain, © correct, (d) state the output. Answer lines are included, so it is print-and-go.
Perfect for
Lesson starters and plenaries
Homework and cover lessons
Revision before programming assessments
End-of-unit debugging tests (Part 8)
Targeted intervention
Good to know
Programs are written in OCR Exam Reference Language, so students see the notation used in the written papers. The logic transfers directly to Python or any other language you teach.
Editable Word document (126 pages when printed).
This is an independent resource. It is not endorsed by OCR, and no program is claimed to come from a past paper.
Download once, and you have a full term of debugging practice with the marking already done.
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.