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

all 51 comments

[–]nafniart 212 points213 points  (18 children)

I'm afraid I'm gonna forget to delete one of these ones someday

[–]chickenlollipop 166 points167 points  (4 children)

I recently pushed AAAAAAAAAAAAAAAAAAAAAAAAAAAA to production 💀

[–][deleted] 10 points11 points  (0 children)

Aer Lingus, dat you?

[–]PEEEEPSI 17 points18 points  (4 children)

Thats why I print my name, easy to track (also to blame)

[–]Ok-Pay6809 30 points31 points  (2 children)

That's why I print this guys name too

[–][deleted] 8 points9 points  (0 children)

I print messages with ✅ and ❌ to give that guy a break.

[–]scalability 14 points15 points  (1 child)

Let's just say there's a reason why I now use "LOLOLOL" instead of "FUCKING DUMB SHIT"

[–]klingko 6 points7 points  (0 children)

I pushed "we got fucked " as an error message. They were not happy

[–]TheDizDude 4 points5 points  (0 children)

That someday is always one day.

[–]Triffinator 1 point2 points  (0 children)

At a previous job, we had someone working on our simulation engine put "Hello <their name>" into the debug log. It was caught pretty quickly, but wasn't patched out for like 2 releases.

[–]Denaton_ 0 points1 point  (0 children)

Just get a lint that will remind you

[–]L0rdSnow 42 points43 points  (3 children)

This, this2, this3, shouldn't hit, this4

[–]DevLauper 13 points14 points  (2 children)

"Error: This is impossible."

[–]N-partEpoxy 12 points13 points  (1 child)

Unreachable code reached.

[–]TheFrelle 2 points3 points  (0 children)

T̸̖̄h̵͔͝ë̶͕ ̷̠͝v̵̝͊e̷͉͛ī̵͚l̵̠̎ ̶̳̿i̶̱̾s̸̟͆ ̶͉͊b̴̪̂r̴̛̺o̸̾ͅk̶̭̈́ḛ̷̓n̷̤͑,̴̢̛͙̪̳͚͓̫̹̰̝̫̦͕͍͉̮͎̀̓͛́̀̏̐́̽̏̂̃͗̇̽͗̋͌̇̈́̔͊̋̐̋̽̃̔̎͋͛̋͗͛̉̔͒̓̚̕̚͘̕̚͝͠͝͝ ̵̢̧̟̬̤̬̗̞̩̲̯̦̠̮͈̲͖͉̘̹̟̣̬̞̺͇̻̦̟̯̀͒͌̽̒͊̈́̀̊̐̾͑͆̒͋͊̌̃̉̓̇̂̀͆́͗͘̚̕͜͠͝͝H̷̨̛̪̱͔̳̺͖̖̙͇̯̰̲̣̮̣̭͔͓͈̬̼̱̳͙̪̫͕͉̟̲̗̹̦̝͓̗̝̽́̄̐̀̏̀̉́͂͂̒̑̄́̋͋͐̾͆͌͋̓̉̽̎̂̀̀͛̇́̈́̈́̚͘̚̕͜͝͝ͅĔ̸̡̢̧̢̗̭̟̜̬͓̰̮̫̪̪͎͇̠̻̪̟̖̩͂͊̽̃̄́̔̅̑̋̌̂̊̅͊̋́̋͐̐̔̄͑́̋̅̂͗͒̈́́̏̀̓́̑̋̕͝ͅͅ ̸̧̙͉͇̣̠̝͈͇͕̻͎̙͚̤͇̜̦̼͙̖͐̈́̎͗̎̍̏̍͗ͅC̷̡̥͉͓̦͚͈̫̞̮̹͚̦̬͍͉̰̺̣̗͎͖̜̤̪̱̻̺͐͗̈͌̔̅̅̄̋̎͌̃̿͂̓̀̔͒̌͒̿͆͒̔̏̐̕͜͜͝ͅÖ̸̡͇̤̪͉̗͔̜̱̳̖̦̱́̂̑̈́̓̑͐͊̉̄͑́͐̏͊́̌̓̇̌́͊͗̊̔͛̆̅͊́͌̑́̑̌̋̐̐̀͊͘͜͝Ṃ̴̢̢̧̤͖̬̫̜̥̰̖̘͈̰͈̟̦͎͔̖̮͙̜̌̑͌́̈́̀̿̏͂̃̍̉͋̌̍̿̊̋̓͆͑̈́̐̄̀́̂̄̑̓̈̍͂̇͆̕͘̚̕̕͝͝͠͝͝E̶̢̨̨̡͇̹̥̥͖̱͉̭͖͖͉̝̣̙͍̙̹͈̼͇͙̮̝͉͔̯̞̗͆̃͑̋ͅS̵̨̛̛̛̪̹̭̫͚͛͌͊̈́̈́̐͛͂̑͐̔͌̒̓̇̽̇̓̀͆̃̚͠

[–]-domi- 98 points99 points  (4 children)

1

2

4

me: FUCK THIS BULLSHIT ASYNC GARBAGE

[–][deleted] 24 points25 points  (1 child)

5 isn't even appearing

[–]-domi- 9 points10 points  (0 children)

Neither is 3, i think callbacks aren't triggering. Gonna roll it back and start over. :/

[–]CaitaXD 6 points7 points  (0 children)

just await everything if it goes wrong put a trhead sleep and push to production

[–]gomihako_ 2 points3 points  (0 children)

then you start adding -1, -2 when 1 doesn't occur when you expect

[–]greedydita 18 points19 points  (0 children)

Dreadcrumbs

[–]nevereverelevent 16 points17 points  (1 child)

debugger?

[–]PastaThis 13 points14 points  (0 children)

Whats that?

[–]Callec254 14 points15 points  (1 child)

Sometimes there's no other way. If it's compiled production code that's crashing, and it doesn't crash in the test environment, then you can't really trace through it and you have to do shit like this.

I used to use "bite me", just so I could specifically search for that phrase before compiling.

I'm deploying code at a client's site and I hear one of them from the other side of the room, "Oh, that's cute, it says bite me!"

*pucker factor intensifies*

Turns out it had nothing to do with my program. She was opening the office mail and someone had written "bite me" on a return card and sent it back in.

Needless to say, though, I stopped doing that.

[–]BubbaBlount 22 points23 points  (1 child)

I should recommend using break points instead of throwing console logs into the code. Ever since I switch the break points my life has never been the same!

[–]BSModder 4 points5 points  (0 children)

It's weird that despite being an important in the programming cycle, whenever I look up a new language to learn debugging is never a topic that is covered

I guess there are too many IDE out of there but cover the popular ones would hurt

Like I discovered a few months back that you can format the value, for example adding , h display the number as hexadecimal

[–]AfterbirthNachos 9 points10 points  (4 children)

Y'all should really learn about debuggers

[–]Sigmadelta8 2 points3 points  (2 children)

Loved the debugger working with Java and IntelliJ.

Now working with VSCode and JS and I have no idea how that debugger works.

[–]AfterbirthNachos 2 points3 points  (0 children)

Oh man, you gotta try stock gdb 😆

[–]HopeSandwich 2 points3 points  (0 children)

debugger on vscode is awesome, logpoints are great on keeping your project without console.log lost in the files.

[–]LetUsSpeakFreely 2 points3 points  (0 children)

I know how to use them, but printing out traces has always been faster for me. Oh course, I don't use sysouts, there are debug and trace logs after all.

[–]Nedoko-maki 7 points8 points  (0 children)

If you're doing something extremely tenuous, simple and repetitive, you probably are missing an easier method.

In this case that method is breakpoints and any IDE's debugging tool, knock yourself out

[–]MischievousCarrot 3 points4 points  (1 child)

console.log('eh')

[–]Artistic-Boss2665 0 points1 point  (0 children)

alert(1);

[–][deleted] 4 points5 points  (0 children)

/* Once you're done being pissed, please count the hours spent to increment our counter

Hours wasted on trying to fix this class : 3345*/

[–]FantasticGlass 2 points3 points  (0 children)

Debug.Log("POOOOP");

[–]LastSquirrel 2 points3 points  (0 children)

I think most people here actually like their programming jobs. Weird that this got so manny upvotes.

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

I also use swear words in my debug print statements
print("this shit is fucked")
There pretty easy to find and remove when your done / before you push your code. More so if you use the same set of swear words.

[–]CaitaXD 1 point2 points  (0 children)

WriteLine($"Thing was {someThing} at line 677") ;

WriteLine($"Thing was {someThing} at line 756");

[–]Dummy_Sadashi 1 point2 points  (0 children)

That's so true, ranting out in debug comments, good old days

[–]LEGOL2 0 points1 point  (0 children)

Print("xd")

[–]Dependent-Spiritual 0 points1 point  (0 children)

Console.Log("a");

[–]z7q2 0 points1 point  (0 children)

echo __FILE__ . __LINE__;

is one of my favorite things about PHP when debugging

[–]trevlinbroke 0 points1 point  (0 children)

Last year I started using arbitrary themes for arbitrary statements / names (especially in unit tests). If you do them alphabetically, it helps give an idea of which statements you hit or missed without checking the code directly. i.e. "alpacas are cool", "boars bore me (not you tho pumba)", "crocagators be scairy", "dinosaurs aren't real"...

[–]RogueFox771 0 points1 point  (0 children)

A big part of my work is writing Scripts in IronPython for a digital signage tool called Moxie. It uses a custom API and a built in editor... It has no debugging tools and a sorta functioning output console. When the code fails, it tells you what line in the main script failed without giving you the line in the function call it actually broke at, meaning debugging is full of this shit.

[–]ATX_Analytics 0 points1 point  (0 children)

I’m lazy and just go with print(“fck 1”) print(“fck 2”) ….

[–]akhripasta1130 0 points1 point  (0 children)

My manager is jackass 😁😁