B2.1 Programming fundamentalsB2.1.4
Construct and use common debugging techniques
Construct and use common debugging techniques
SL + HL≈ 55 minCommand term: ConstructPremium
In this lesson
- Constructing trace tables to check how variables change
- Using print statements to inspect a program while it runs
- Using breakpoints and step-by-step execution in a debugger
- Locating and correcting errors in short programs
This lesson is part of Premium
Every topic has one free lesson. Premium unlocks every interactive lesson, the exam-style questions at the end of each one, and the rest of Praxis IB.
What's inside
- LearnDebugging
- LearnTrace tables
- CodeCounting warm days
- CheckTrace the warm-days program
- LearnPrint statements
- CodeFinding a bug with print statements
- LearnBreakpoints and step-by-step execution
- LabDebug a function
- CheckQuick check
- ExamWorked exam answer
- ReviewMistakes examiners see
- Exam practiceExam-style questions
Ends with 4 exam-style questions worth 11 marks, with a self-marking markscheme.