Even a bit of a trick that you have been using would help me to succeed.
Like sometimes I code blindly and of course, rivers of errors aren't surprising. But the problem is it becomes really tough for me to debug at the right point.
Recently, I wasted an hour or so on figuring out a bug that turned out to be the different key in the request object and database object.
Any advice would be appreciated. Thanks :)
Being systematic and thorough... here's one I prepared earlier ;)
Mark
It's good to learn to debug well
But it's always going to be a lot of work to find bugs, and I personally prefer to focus on not getting rivers of errors, especially in bigger projects.
For that I would refer to this useful question and my and other answers there: What are some programming habits you follow to keep bugs away?.
In your specific example, is sounds like the same information was in two places and got out of sync (DRY).