Ask HN: Longest you've spent debugging a single issue?
Along the lines of this other HN posting: https://news.ycombinator.com/item?id=11729806
What is the longest you have spent in any code base, debugging a single issue. What was it?
I personally spent approximately 15 days finding and fixing a race condition in a custom multiprocessor enabled 3d rendering engine, that I was not part of writing. It was reasonably early in my career but I feel would still take many back to back days to find a solution today. Difference being I know the problem domain a lot better now to know how to break up the problem and where to look for issues.
In the last year, I think the longest is about 3 straight days on an embedded project tracking down bad values getting set seemingly at random (no JTAG etc).
10 comments
[ 2.6 ms ] story [ 38.7 ms ] threaddo you work little on it or just expand the features ?
Fuck SalesLogix, btw.
BTDT in just working around something because of time/cost constraints, but I have that personality that wants to understand and find the root cause even if we build a workaround. That is a good and bad trait, not everyone wants to pay for you to find the issue just cause you want to.
It was that bad back in 2003. Knowing what I know now, I would have pressed for a bug report, but it was/is one of those software packages where only a trained/certified person could contact support.
Back then, I knew 0. I had a computer science degree, some hobby programming, but it was nothing compared to real world programming.
My way of phrasing the question was: after how long should I quit debugging if unsucessful?
My answer to your question: a day or two, and not talking about advanced programming.
I havent read books about debugging yet but I started to track reasons for why things go wrong and I'm perplexed. Answering this question makes me feel like I tried to reinvent the wheel. That will determine me to read a book about debugging. Right now I want to find out all the reasons why bugs occur. I dont know much about other programmers, this is an interesting topic to read.
But I find you rarely spend time focused on one bug - not just for practical reasons, but this is usually not the best way to fix difficult bugs. If you focus directly on it you're in "alert problem solving mode" rather than "quiet reflective mode" and insight and creativity only come in quiet reflective mode.
I've solved so many bugs while playing minecraft, or standing in the shower, or walking to the train.
If only I could convince my boss that when I'm playing minecraft - I'm only distracting my immediate consciousness (is there a word for this) while my mind is actually reasoning about the bug / rubber ducking