Knowledge organisersIDE Skills
Stepping + watch tools.
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.
F10): run one line, skip into functionsF11): go inside a function callprint()# 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'