DEV Community

Discussion on: What is your debugging approach?

Collapse
 
martin profile image
Martin Beentjes

My debugging approach is still not as efficient as I would like it to be.

  1. Panic
  2. Open up the logs
  3. Push the bug back to the reporter to explain it more and reproducible steps.
  4. Run application locally and try to reproduce
  5. Swear
  6. Put log.info("what the fork is going on?!") everywhere in the code
  7. Look into the database
  8. Start to rule things out
  9. Decide I need more documentation of all the business rules there are.

I am currently in the process to get diagrams setup for all the business rules to be able to understand what it should be and what it is. Also to push back to the reporter that it functions as designed. And also to make more and more tests.