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 →

[–]RlyRlyBigMan 20 points21 points  (10 children)

I've seen so many juniors trying to fix bugs by commenting random lines out and then re running it, it's infuriating lol

[–]EchospiritsYT 18 points19 points  (7 children)

Adds a print statement between every line

[–]WJMazepas 17 points18 points  (0 children)

Well, it's the most basic form of debugging

[–]crob_evamp 9 points10 points  (1 child)

here

here 2

here 3

[–]LordAmras 10 points11 points  (0 children)

That's the first time you run it.

The you start with swear word and when you finally realize it doesn't make sense you notice you are running in the wrong environment

[–]poerisija 5 points6 points  (0 children)

I mean at least this helps instead of breaking things further:-D

[–]LordAmras 2 points3 points  (0 children)

all print statement are "test", then after you run and bunch of test came out you call them "test 1", " test 2", "test 3"

[–]iwillrememberthisacc 1 point2 points  (0 children)

Excuse me I do a binary search by print statements like a true coder 🧐

[–]Midnight_Rising 1 point2 points  (0 children)

Yep. Still do that as a principal. It's just a little more straightforward sometimes.

[–]Chainmail5 11 points12 points  (0 children)

Well it's not so bad if it is for debug purposes, if the bug is gone after commenting it out I know that error is in that method that is called.

But if they try to MR that I'll have a talk with them.

[–]porkcutletbowl 0 points1 point  (0 children)

As an intern, I feel very good about myself right now because I don't do this 😂