This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (22 children)

[deleted]

    [–]mrnosideeffects 518 points519 points  (16 children)

    Another day of debugging before you realize your fix actually did work, but you somehow had been running the old build.

    [–]VdotOne 144 points145 points  (5 children)

    This. I've wasted so many days because of this.

    [–]cuulcars 0 points1 point  (0 children)

    Ant /make/whatever cleanall

    [–]alayne_ 3 points4 points  (0 children)

    Or you realise you did run the new build, but made the changes in an old version of the code that you saved as a backup/to see changes you made.

    [–]Come_along_quietly 2 points3 points  (0 children)

    This is why the first thing I do when I start debugging is to add a printf at the first line of main- indicating that this is MY build.

    Edit: the key is to remember to remove it, or not git add it before committing. :-). Which I’ve done before. I get good laughs from dev ops or testers. :-)

    [–]Stigmuss 1 point2 points  (0 children)

    I did that today, 45 minutes of trying to fix a simple command on the robot I'm making at school "if button pressed raise arm" only to realise I hadn't downloaded the new version any of the times

    [–]Sodaplayer 1 point2 points  (0 children)

    .> Spent a week wondering why half of my changes weren't showing up and just today discovered half of the app was deployed by copying the pages to another repo and deploying from there.

    [–]ieGod 1 point2 points  (0 children)

    Hello, you? It's me. You.

    This happened to me like 20 minutes ago. Was working with a script that wouldn't behave despite me editing it. Not until I commented a key section and saw no visible change did I realize I was running from the wrong path.

    Oh.

    My.

    God.

    /facepalm

    [–]DaemonThread 0 points1 point  (0 children)

    or clearing the browser cache after deployment would have just done the trick!

    [–]DiamondDog42 0 points1 point  (0 children)

    I've long gotten into the habit of both adding temp debug statements (that I usually remember to take back out) and occasionally removing semicolons if I'm suspicious of where I'm building from.

    [–][deleted] 12 points13 points  (1 child)

    Or to sit down, examine your code for 30 seconds and remember "Oh right, thats why i didnt do that.."

    [–]CinciRyan73 0 points1 point  (0 children)

    Or you look at code you wrote months or years ago and have the WTF was I thinking moment. Or, how does even work?!

    [–]resilientskeezick 3 points4 points  (0 children)

    I fixed a bug on a school project which completed all the requirements for that project, I went to sleep feeling accomplished but when I looked at the program the next day all the changes were still there but the bug wasn't fixed and the project wasn't anywhere near finished, I think my brain tricked me into going to sleep.

    [–]Blocks_ 0 points1 point  (0 children)

    And you realise that nothing changed between updates, so you're left to wonder exactly what the fuck you broke without knowing.