Revise Computingrevisecomputing.co.uk
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates

Knowledge organisers / IDE Skills

Debugging tools

All topicsPractise exam questions
Knowledge organiser

IDE Skills

301.18d

Stepping + watch tools.

What you need to know

IDEs offer debugging tools: breakpoints pause the program at a specific line, stepping runs one line at a time, and watch windows show variable values as the program runs.

Key points

  • Breakpoint: click the line margin to set a pause point
  • Step Over (F10): run one line, skip into functions
  • Step Into (F11): go inside a function call
  • Watch: add a variable to see its value update live
  • Use these to trace logic errors without print()

Code examples

Debugging workflow
python
# 1. Set breakpoint on suspicious line
# 2. Run in debug mode
# 3. Step through line by line
# 4. Watch variable values change
# 5. Find where the value goes wrong

total = 0
for i in range(5):    # ← set breakpoint here
    total += i        # watch 'total' and 'i'