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

  1. LearnDebugging
  2. LearnTrace tables
  3. CodeCounting warm days
  4. CheckTrace the warm-days program
  5. LearnPrint statements
  6. CodeFinding a bug with print statements
  7. LearnBreakpoints and step-by-step execution
  8. LabDebug a function
  9. CheckQuick check
  10. ExamWorked exam answer
  11. ReviewMistakes examiners see
  12. Exam practiceExam-style questions

Ends with 4 exam-style questions worth 11 marks, with a self-marking markscheme.