Debugging Tips
Advice to Debug Programs by M. R. Murphy
Here’s the list. I’m curious, can you add to it?
- Is the argument count correct?
- Is the spelling correct?
- Is the argument type correct?
- Is the variable initialized correctly?
- Do “ends” match “do”s?
- Is the correct register used?
- Is a previous equate, using, or define in effect?
- Is the level of indirectness correct?
- Are the defaults correct?
- Is the array large enough to hold the data?
- Is the index out of range?
- Is reentrancy, reusability, refreshability preserved?
- Did you let something go by that you can’t explain? Fix it now.
- Does the program have anything remotely to do with the requirement for the program?
- Did you start to code before thinking?
- Did you read the manual?