Debugging Strategies
Run-time errors:
- Programming environment provides tools for tracing values as code executes.
- But: the most basic tools are independent of the programming environment:
-
- 1. Code tracing: use your eyes and mind!
-
- 2. Use print statements: insert statments that tell you
what key values are at given
points in your program.
- 3. Use DEBUG flags: build in print statements
in a way that lets you turn
them on and off.