I love debugging. I love it even more when after an hour or so, I realize that I made a stupid, stupid mistake.
Like, suddenly I can't open my save files, and max_k_idx is set to 17. Hmmm ... that can't be right? The savefile value of 672 sounds more like it. Lemme recompile the world.
Now, I still can't open save files, but this time it is max_wild_x that is set to 17. The savefile value looks fine, so something is stomping 17's at random memory addresses!
Eventually, I tracked it down to developer stupidity. I added a bunch of new attack types GF_This and GF_That, but stupidly forgot to bump up the MAX_GF sitting right below my code. Somewhere there was an array initialized to be MAX_GF elements ...
Duh! I feel so dumb :P
Sorry, I just wanted to share my pain ... What has been your worst debugging experience? And when all was said and done, was it your fault?
Like, suddenly I can't open my save files, and max_k_idx is set to 17. Hmmm ... that can't be right? The savefile value of 672 sounds more like it. Lemme recompile the world.
Now, I still can't open save files, but this time it is max_wild_x that is set to 17. The savefile value looks fine, so something is stomping 17's at random memory addresses!
Eventually, I tracked it down to developer stupidity. I added a bunch of new attack types GF_This and GF_That, but stupidly forgot to bump up the MAX_GF sitting right below my code. Somewhere there was an array initialized to be MAX_GF elements ...
Duh! I feel so dumb :P
Sorry, I just wanted to share my pain ... What has been your worst debugging experience? And when all was said and done, was it your fault?
Comment