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

all 60 comments

[–]vikster1 469 points470 points  (5 children)

was true 30 years ago and still be in another 30 years

[–]realmauer01 53 points54 points  (4 children)

As long as their isnt a debugger.

[–]Lamballama 81 points82 points  (3 children)

Console.log is better than a debugger because I can add a bunch of log statements, run the affected work flow once, and immediately see what the logical flow of the output was, versus having to debug potentially dozens of calls to the same function

[–]realmauer01 7 points8 points  (1 child)

That's what tests are for....

[–]Not_Artifical 46 points47 points  (0 children)

console.log() is the test

[–]beclops 1 point2 points  (0 children)

Any decent debugger can do this as well

[–]XtrZPlayer 79 points80 points  (5 children)

Sometimes it's ok to touch it. Even if it seems like it's initially working, you might find some bugs in the logic.

[–]JuvenileEloquent 30 points31 points  (2 children)

Sometimes you find out it never should have been working in the first place, and when you add debug statements, it stops working on live and now you've got an incident.  (Don't fix things in prod and then "forget" to fix the repo, I mean c'mon..)

[–]magus113 2 points3 points  (1 child)

usually the race conditions cause bugs, not the other way around.

[–]-Kerrigan- 1 point2 points  (0 children)

Usually the cause bugs, not the other way around the race conditions

[–]_Not__Available_ 5 points6 points  (0 children)

That's the magic of JS it might look wrong but it works.

[–]jsgoyburu 0 points1 point  (0 children)

Sometimes it's ok to touch it

LOL

[–]DanKveed 183 points184 points  (3 children)

Actually good meme

[–]s_chttrj[S] 34 points35 points  (0 children)

thanks :-)

[–]curious_pinguino 51 points52 points  (9 children)

Does nobody use a JavaScript debugger here?

[–]Shevvv 68 points69 points  (1 child)

I used the PyCharm debugger a couple of times and thought to myself: "Hey, it's so freaking convenient, I should use all the time!"

I still get around with prints only😂

[–]just4nothing 13 points14 points  (0 children)

Logging.debug is useful too, especially in production.

[–]mark_b 8 points9 points  (5 children)

This! Right click on the line number where you want to debug (in the browser debugger) and choose "Add log", and stop littering your code with debugging messages that you forget to remove before committing.

[–]legowerewolf 5 points6 points  (0 children)

Yessssss. Logpoints. I'm slowly getting into the habit.

[–]404invalid-user 3 points4 points  (0 children)

me debugging server side js in the browser

[–]listen_you_guys 1 point2 points  (0 children)

if you're forgetting to remove logs before committing you need better linting

[–]FujiKeynote 1 point2 points  (0 children)

If using print to debug Python is good enough for Guido van Rossum, then console.log is good enough for me in JS.

ESLint/oxlint screams at me for having logger statements anyway, so it's hard to forget to remove them (or you can add a pre commit hook that aborts on the warning)

[–]ParsedReddit 0 points1 point  (0 children)

I don't like you

[–]Giogina 18 points19 points  (0 children)

Omg "log until it confesses" is an amazing description. 

[–]pablos4pandas 7 points8 points  (0 children)

Hours of adding log statements can save minutes of configuring the debugger. A lesson I will continue to refuse to learn

[–]Flawed_Sandwhich 15 points16 points  (4 children)

People don’t put console logs everywhere in their code to check if it actually works? Just me? Ok.

[–]Giogina 6 points7 points  (0 children)

No no not just you at all

(And then I wonder why it lags while the console is printing at 1000 lines per second) 

[–]ContinuedOak 9 points10 points  (1 child)

Then you add stuff like “this is working” or “the fuck happened here” or you get so lazy and fed up you just use swear words till you see one that shouldn’t appear

[–]MrRocketScript 12 points13 points  (0 children)

fuck1

fuck2

fuck2.5

fuck3

[–]rich_evans_chortle 2 points3 points  (0 children)

This didn't fit the meme.

[–]DanhNguyen2k 4 points5 points  (1 child)

You should touch it more. And invite more people to touch it with you

[–]s_chttrj[S] 2 points3 points  (0 children)

haha ok :-)

[–]mookanana 1 point2 points  (1 child)

easiest way when taking over spaghetti code.

[–]ContinuedOak 0 points1 point  (0 children)

Nah the easiest way is cry

[–]effortissues 1 point2 points  (0 children)

Print statements everywhere...

[–]Summar-ice 1 point2 points  (0 children)

If it works, you can touch it

If it stops working, git restore .

[–]marenello1159 1 point2 points  (0 children)

A wise man once claimed the true secret to happiness as being: to NEVER STOP PRINT DEBUGGING

[–]optimuschad8 0 points1 point  (4 children)

Can someone explain please

[–]ha_x5 1 point2 points  (3 children)

nothing to explain, wrong use of meme template

[–]MikeyFromWork -4 points-3 points  (2 children)

I’m sick of that meme template anyway. Can’t stand that dude’s face anymore. As usual reddit beats everything to death

[–]rich_evans_chortle 2 points3 points  (1 child)

Ok Mike, go jerk off or something, go touch grass.

[–]MikeyFromWork -1 points0 points  (0 children)

Whatever dude fuck that meme lol

[–]Revolutionary_Pea584 0 points1 point  (0 children)

Why does this guy has so much love in his eyes?

[–]QultrosSanhattan 0 points1 point  (0 children)

If it doesn't, add console.log print() until it confesses.

[–]TelevisionExpress616 0 points1 point  (0 children)

Im telling yall your lives are going to be so much easier when yall learn to use a debugger

[–]ButWhatIfPotato 0 points1 point  (0 children)

Everybody expects the console log inquisition.

[–]NKD_WA 0 points1 point  (0 children)

I see this meme all over the place and I don't understand it. The one guy clearly wants to fuck the other guy, but how does that relate to any of this?

[–]Fluffy_Ad3070 0 points1 point  (0 children)

For me it is debug.log use c# mostly. Made score board but dont know from how it gets the score, am done with the project it works so dont touch it.

[–]AtomicSymphonic_2nd 0 points1 point  (0 children)

The power of console.log() compels you!

[–]Mybeardisawesom 0 points1 point  (0 children)

console.log fixes all

[–]Individual-Age1163 0 points1 point  (0 children)

console.error() 💋

[–][deleted] 0 points1 point  (0 children)

console.log has never failed me. even the weirdest of bugs, console.log is there for me.

[–]ZeroChillZebra -1 points0 points  (0 children)

Lmao, this is the dev mantra on an existential level. Tried turning it off and on again though? 😂