Debugging
Process of removing software mistakes from a program
Can use temporary printf statements
- e.g., introduce printf to detect infinite loops (print counter to see what is happening)
- e.g., test whether particular program branches are entered
Good idea to comment out the debug code and leave it there