Debugging Tips




Advice to Debug Programs by M. R. Murphy

Here’s the list. I’m curious, can you add to it?

  1. Is the argument count correct?
  2. Is the spelling correct?
  3. Is the argument type correct?
  4. Is the variable initialized correctly?
  5. Do “ends” match “do”s?
  6. Is the correct register used?
  7. Is a previous equate, using, or define in effect?
  8. Is the level of indirectness correct?
  9. Are the defaults correct?
  10. Is the array large enough to hold the data?
  11. Is the index out of range?
  12. Is reentrancy, reusability, refreshability preserved?
  13. Did you let something go by that you can’t explain? Fix it now.
  14. Does the program have anything remotely to do with the requirement for the program?
  15. Did you start to code before thinking?
  16. Did you read the manual?


Leave a Comment

You must be logged in to post a comment.