Use the Surrender Tactic: Frustration when debugging 13 years ago
You are very right. and spot on. I used that example to mainly bring out the message.
This particular bug wasn't in my code but on the platform the code needed to run on. Because of my wrong approach to debugging I ended up spending more time looking in the wrong place for the bug. so actually what I thought was debugging was just time wasting.