Debugging Principles
Posted on
The gist
- Reproduce the problem in a non-production environment (locally is best).
- If not possible, add as much logging as possible and then some.
- Eliminate as many variables as possible. Example: comment out code until it works.
- If you have a stack trace then understand it completely.
- Don't beat yourself up for not finding it right away.