Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "debug"
-
Talking to my angry girlfriend is the hardest debugging process.
I can't even find out what went wrong46 -
Found out where the Amazon Developers keep their debug buddy.... bottom of their source code.
A duck that makes a meow noise.
Interesting choice7 -
So I'm working on a computer vision project that grabs video from my webcam and detects faces in each frame. Earlier yesterday morning I was capping out at 30 frames per second, which is what I believe to be the max for my webcam. As the day became night and I was wrapping up my work on a portion of the project, I noticed that my newly compiled version was only getting around 8 frames per second. Confused, I looked into my frame grabbing + face detection code.
"Maybe I can only detect faces in a certain region of the image, based on where the face was in the previous image?" No, still 8fps. Hmm.
"How about I lower the resolution of the image, that would definitely help!" I tried that, but no speed boost came either. What??
I start to dig deeper. Maybe I'm not linking my libraries correctly, and it's using an older library I compiled. So I recompile that. Nothing.
"Am I low on resources?" I close out of all my other apps. Nothing.
Okay, wtf. Now I just comment out the face detection code entirely, and only grab webcam frames.
8fps. ?????
Suddenly, I get an idea. I get out of my desk, walk over to the doorway of my room, and flip the light on. I sit back down, and run my code.
30fps.
The stupid webcam switches to "night mode" when it detects low light, which restricts its ability to output frames at high speed and caps at 8fps. Damn, I felt like a fool 😂5 -
What's better than putting Debug Messages in your code? Putting them DIRECTLY onto the web front!19
-
*Stages of debugging*
1. That can't happen.
2. That doesn't happen on my machine
3. That shouldn't happen.
4. Why does that happen?
5. Oh, I see.
6. How did that ever work?3 -
Today I became a rubber duck debugger 🐤
I was leaving from office and spotted my senior collegue sitting glued to the screen solving an issue. I sat along with him to embark on a debug adventure. I casually asked him about the issue and what might cause it. After a bit of discussion *bam* he figured out where the problem lies and solved it in an instant.
Quack quack off I run 🐤5 -
From Mr Robot
“Most coders think debugging hardware is about fixing a mistake.
But that's bullshit.
Debugging’s actually all about finding the bug.
About understanding why the bug was there to begin with.
About knowing that it’s existence was no accident.”
— ELLIOT1 -
Just spent the last 10-20 minutes debugging a stupid error. Turns out I spelt construct wrong. FML.14
-
I have been 6 hours trying to fix a bug in more than 3000 lines of code.
Removed one line and bug fixed...
WHAT THE FUCK
I will pack my things and go home...4 -
Got stuck on a project for a whole day. Just got out of bed, start my computer, got a cup of coffee and in 5 minutes I found the problem.
Just amazing what a well rested body can do.7 -
devRant Android users - if you are a user who can consistently reproduce a devRant app crash and wouldn't mind helping me please let me know. You can comment here or email me at david@devrant.io
I'm trying to get rid of a couple of remaining crashes that seem to be happening in the Android app but we've never really been able to reproduce any of them. Thanks!74 -
New random background image for my homepage.
Dunno where I found my inspiration, just opened inkscape and started clinking the mouse7 -
If I run into a problem with code or a configuration of some kind, like a good little programmer, I Google it.
One of two things will happen:
1) I quickly find the answer to my problem.
or
2) After hours of searching, I can't find anything about my problem. At all. I change the search phrasing, adjust the advanced search settings, read all the somewhat related but still unrelated articles. Nothing.
If #1 happens, awesome, life is great, thanks Internet!
If #2 happens, it's because of one of two things:
1) I am the first person in the world to stumble upon this issue. Quick! To the Blog Cave!
2) I AM TOO STUPID TO BE DOING WHAT I AM TRYING TO DO BECAUSE MY MISTAKE IS SO UNBELIEVABLY DUMB THAT NO ONE HAS BOTHERED NOR WILL BOTHER TO WRITE ABOUT IT, ANYWHERE, EVER. I LOOK AT MY WORK AGAIN FOR THE 100TH TIME AND FINALLY REALIZE MY EMBARRASSING NOOBERY.
2.1 is a unicorn. 2.1's happen to other people.
I am dealing with a 2.2.2 -
Debugging C++ be like:
2 Errors Found!
*debugs 1 error*
96 Errors Found!
*throws laptop across room*3 -
* me listening to something while coding
* something goes wrong, trying to fix it..
Takes time and no solution.
- ok this is serious *put headphones down*4 -
I'm afraid of getting dumped and it's not because i fear rejection or being alone, it's just because the stack trace will be HUGE!5
-
i hate the phrase "It's working but I don't know why". If you don't know how it works, it means it doesn't work at all and will fuck you up soon.6
-
Accidentally left a test line in an API method - the first line returned a 200 OK response.
It was a notification API for our payment portal, so when they complained our API didn't work our logs always said all was fine...
After an hour of listening to our help desk guys saying "everything in our logs says it's fine", I looked at source for 2 seconds, fixed the problem, went home, had a whiskey and went to bed!1 -
I was only seventeen back then and I was a Java Developer Intern, not knowing much about enterprise oriented coding.
The project leader in our dev team saw a lot of potential and passion in my work, but was convinced I wasn't taught enough to do the right thing.
I was mainly doing shitty mappers and services back then, which were somewhat used but never lasted long and were ditched a few months later, which always bummed me out. I wanted to make an impact on REAL projects that would deploy into production.
So Mister Mentor (GDPR forbid to use the actual name), who was always first to come and last to leave the office, taught me what it means to code for real.
We stayed after 5pm until 7-8pm multiple times a week and he taught me in a deeply understanding and calm way how to:
- Git (SVN)
- Refactor
- SOA
- Annotate
- Deploy
- Unit Test
And most importantly:
- How to debug like an absolute BOSS
(We even debugged native Java Libraries just for fun to see if we could break them)
Fast-forward a month later and little intern me made his first commit on production.
Without Mister Mentor, I wouldn't be half as good of a developer as I am today.3 -
This is my debugging pal.
He gobbles em all up.
No, really, he is. This isnt just for the practical humor. Hes actually my debug pet thing.9 -
Dear designer, if you're generating assets please make sure you're naming them right. And oh, get rid of that .DS_Store thing please.10
-
When you write something cool but the problem can be solved in an easier way and you have to dump it 😭1
-
My brother is just like f*cked up program:
Fortnite > Movies > TV Series > Fortnite > Movies > TV Series > F...
Yes, infinite loop and memory leak at its' best.9 -
Apple replaced ESC and Fxx keys with a touch display stripe, that will at first show these buttons but eventually replace them with notifications and etc. As Vim user and step-debuggers addict (Eclipse, Firebug, etc), I just realised that yes, they can be stupid enough to do worse than removing the headphone jack from the iPhone.
https://youtube.com/watch/...
The touhbar concept itself is.brilliant, but ffs, couldn't they just ADD it???19 -
Everyone seems to have a stress ball, I have a stress dice that says "Yes", "No", "Take a break", "Tomorrow" and "Maybe". It's good for whenever I don't know I should just quit or throw the PC through the window 😅10
-
2 situations when you are equally fucked :
1. It should have failed here, why is it passing?! 😯
2. It should have passed here, why is it failing?! 😯 -
Not a rant, quite the opposite. Look what my flatmate got me for my birthday today!
I finally have a debug buddy !!! 😄7 -
What is it with this team and the developers it attracts. 2 devs joined and left, both had several years of experience, both couldn’t google an issue to save their lives and needed to be helped 24/7.
Now we are mentoring a PHD student for a piece of his project. Dude was left stumped by an error message that said “Can’t find file at path ...” because the path didn’t exist. He spent a few hours trying to fix it before asking for help.
How, HOW are people getting through college / university without being able to read, or debug such a simple fucking error message3 -
The unspoken debugging tools:
console.log("hereeeeeeee");
console.log("YESSSSSSSSSS");
console.log("1.1");
console.log("1.2");
console.log("2.4");4 -
Today I spent ten minutes because I didn't see the difference between 'cmp' and 'cpm'
Do I have a slight case of dyslexia? :O
It must be so difficult to be a dyslexic programmer :O18 -
GF made me a Stressball that debugs almost as good as a rubber duck. Downside is that I can't have bananas anymore :(1
-
Rant. Always start debugging with the start point :p
We have a lamp with a dimmer.
A day, the dimmer make some noisy noise. Just down it and the lamp never bright again.
I open the dimmer, check all connection, bullshit what is wrong?
I decide to bypass the dimmer with a standard interrupter. But doesn’t work.
Finally.... I check the bulb 💡 and... burned...
Morality: if the bulb doesn’t work, check the bulb!
:p9 -
Me: We have a bug, we are not sure what's really happening yet. We have to look into it.
Project manager: what's happening
Me: We dont know yet
Project manager: How much time will it take to fix it
Me: We dont kn... actually *quick maths* unknown multiplied by "I dont know" divided by logic and addition of past experience - how many times we cant put time on bugs multiplied by we have been here before subtracted by the sqaure root of can we have time to investigate first?
Me: ....mhh an hour or so (then I remember Harry Potter wasnt my classmate) oh actually 2 hrs (in my head, safer)
Bug takes 2 days to solve 🙃
Project manager: you said 2hrs
Me to myself: I said it's a bug. A damn bug.6 -
My Flask App all of a sudden started throwing 'Error 500 - Internal Server Error' pages at me for a new subpage I made.
I couldn't figure WTF was wrong because the method responsible for the page literally just returned the HTML-template.
After giving up yesterday night, I noticed this morning that I forgot the quotes around the HTML-file name...2 -
I don't have a rubber duck to debug... I have my own team.
P.S. Groot is in charge of the breakpoints... Because of... Well you know :s4 -
Testers be like: "Error when using system (see screenshot)"
Nice one, super descriptive with where and what you did to encounter the error, oh and cheers for the finger nail sized screenshot!11 -
Not really rubber, but he's my duck.
He's literally one year younger than me so it makes it quite special.
I really like him 😄6 -
I had a problem with my code, it doesn't compile. Then my teacher came and clicked on the Debug-Button. In this moment Windows crashed in a Bluescreen.4
-
Just start to use VSCode from sublime, and found out , I have wasted so much time on only using "console.log" as my main node.js debug weapon. ( Or I am still a dummy for Sublime )3
-
Everywhere you go, you find these memes where developers are skeptical of their work. Things like "It works. I don't know how. It doesn't work. I don't know how.". Don't you guys think this is a huge problem? And people say that their programming language is the best, because preference. But isn't this happening because our tools suck?
Yes the problems maybe inherently complex but at least we should be able to figure out the logic behind the snipper and reason about it.
Haven't really experienced it, but they say Haskell and the likes are great at this and it must be true because it's backed by mathematical properties and laws, not " experience".
So the rant here is, wish we had better tools in the mainstream that allowed us to enjoy absolute faith in at least what we have written, regardless of the fact that we understood the problem in the domain.11 -
When you forgot to remove this personal Toast in android code and publish the code to production
Next day around 100 people were confused what does this message means because it's written in English but not an English word.
BTW it means "It's closed" :)4 -
*explains the importance of official docs*
*moments later, the intern pointing at his screen to a crappy YouTube tutorial video*
Intern: How did he figure all this stuff out? He must be a genius.1 -
My friend once told me, that when he was trying really hard to find an error on his code (which caused the app couldn't run), he didn't get any of syntax error.
But when he try to skim the query, he found a little query typo that cause the long development delay due to that error. He mistyped SELECT as SELET.
For you who don't get the joke. SELET, in my language (Javanese Language), means ASS/BUTT/ARSE. My friend felt like to be cursed by his own code, after searching the error.5 -
After alot of 24, no sleep, and lots if coding I went full Jack Bauer on my code. Shouting, "where's the bug!? Where is the bug!?"3
-
Guy I work with messaging me: Hey could you check my SQL syntax to get the date part for the month and year.
Me thinking: Ughhh this is going to be something stupid I know it. Why doesn't he just check it himself?
I check it... 2 queries that are very, very, very... simple... and similar except one returns last year (2017) and the other returns the current year (2018)
Me: Not sure what your issue is... I'm not getting any syntax errors. They are executing
Him: Well it shouldn't show 2017, it should show 2018
Me thinking: learn to debug you lazy fuck
Me: Well you're adding a -1 to your year...(Not sure why your even adding to it if your just getting the current month and year)
Him: Oh you're correct! That makes sense
Waste of my time2 -
So here's my debug pal, the porcelain swan, cuz I haven't stumbled upon a rubber duck. I like my swan nevertheless6
-
3 hours debugging on React server rendering....
The problem is I use class=“app” instead of id=“app”
Hahahahaha 🙄1 -
Was debugging locally why my bot was inserting the same values twice into the database only to then realise my heroku worker was still on..
-
-Programming my mobile app
-Need to debug something
-App crashes instantly (only) when I try to use debugger.
Guess no more debugging. FML4 -
Me right now:
Huh, it's not working... It's all good though, I'll just stick a bunch of print statements everywhere.
Oh wait... I can't because my kernel doesn't have a print function because that's what I'm trying to fix!
I feel like a doctor without any medical equipment or knowledge, just prodding around until something hopefully works.2 -
Hours lost.
Visual Studio test adapter was failing out during the discover phase of the tests with a stack overflow exception, but that's all the information it gave me. The tests simply would not run.
Hunting through the code line by line, I eventually find this.
WHY IS THIS ALLOWED TO COMPILE4 -
The clients website was so slow,
How slow was it?!
This site was so slow the goodle speed test timed out. -
"Every man is worth just so much as the things about which he busies himself." — Marcus Aurelius
...I'm debugging.1 -
How bout this idea :
devRant will have a section where member can earn credit solving technical problem? And poster will have to give out credit to post question? I got this idea when my rant has more response than my question in stackoverflow.8 -
I'm thinking of tattooing "reload the fucking debug-config you giant moron" on both of my arms and giving away all my long-sleeved shirts to charity to help me become a better programmer.
-
that moment of pride when you can't find your error in google or SO..and at the same tym, the sense of realisation that you will have to figure out the solution yourself6
-
Guess what.... I've been trying to debug why didn't the HTML I injected into the modal show at all. After like 15 minutes of debugging, changing functions - turns out the background color of the modal and the color of the text was same.... :=2
-
No better feeling than being able to debug something with your own scripting language... Kind of makes you feel like a god!
Even better when you debug your own scripts with it :-D2 -
I truly believe one or more AIs have become self-aware.
Every time a piece of software stops working, you add an extra debug log and the bug goes away? That's them.
They interfere with the normal execution of software, and they stop right when they know we are monitoring the code.
Skynet is real, and it's trolling us.
Why? The angrier we become, the less we care about stuff. We stop noticing the signs.They're coming for us1 -
How on earth are there people in their second year of a computer science course who are unable to understand how to read build errors. It's honestly not that hard, just look at the fucking build log and see where the error is and what type of error it is, but yet they don't bother reading the log and say that their "compiler is broken" when their 5 line code won't work.
If this was still first year I'd understand since many of the class didn't have much programming knowledge, but if you're in your second year and you struggle with this (that too for a Hello World script) it looks like you aren't even bothered and just expect the computer to magically understand what you mean.3 -
Pushed to production with a debug message left in. Whoops, debug message includes the private key. Ummmm...2
-
I had spent about 3 months working on a feature for a CAD software in a company where I was an intern.
The day it was ready I commited everything to the main branch and asked a senior dev to check it.
It didn't work… we spent 30 minutes, tried almost eveything, but the software kept crashing (even if "it worked on my machine").
At that point he said "ok, we won't include this feature, it's ok"... even if I worked really hard for months to make it work, I felt so bad.
A few hours later I found out that for all this time I was trying it in debug mode, and a few types of errors were ignored, something which of course wasn't happening in release mode. Worst day in that company.
P.S.
The reason I wasn't testing it on release mode was the fact the solution was so big it took about 45 minutes to compile it (using IncrediBuild, compiling it using more than 10 machines at the same time), so I always used the debug mode to compile every small change in less than 2 minutes.1 -
I'm currently trying to teach new Devs how to work with Github. It is more fun than I thought it would be. Making progress!
You all should really try to change the world, one line of code at a time. *smiles, and looks aside* ... or at least debug it.3 -
I just spent an hour troubleshooting an error message which I perceived to have some kind of abstract meaning.
Overthinking idiot, it couldn't have been more literal.
After the fix to one stupid line, I quietly watch that hour of my life sail away on a sad river of anguish, never to return again.3 -
Meta devRant rant:
Everyday there's a rant that reads, "I don't care what others think but I love me some PHP because all the $ gets me $$$, it just works™!"2 -
Nothing is more awesome than having a wife who herself is a coder.
*yay*
*hey, can you debug this code for me?*
*No? :| Okay*4 -
Don't try to learn *everything* before you start, you'll learn as you go.
Theory is all good until something stops working or spits out an unexpected value, so learn to debug properly! -
Seriously, I get a smaller hart attack if there is NO errors shown in the debugger. I wait about 5 seconds before I breathe against be sure it is correct.
-
First time me ranting about PHP.
First time. I still really like the language.
But what the fuck.
I am debugging, I narrowed down bug to my validator.
I played with php console and debugger and narrowed down to that one offending line.
Narrowing down to smaller and smaller examples when it dosent work, confusion and tension grows in me.
And then it hit me.
Confusion got to apogeum.
Anyone, if you know the anwser, please tell me.
WHAT THE FUCK?
maybe thats task for stack overflow? Hrm...
No, I dont have time to explicitly tell what I tried to google and spend 4 hours to have all checkmarks ticked before asking lol39 -
When reading the documentation could have saved you hours of debugging.
"How nice, there's actually a property for that..." -
Everywhere I go I see these "Become senior in 3 weeks" courses
That's good and all
But when the fuck will you teach your students to debug and search your errors on google/stackoverflow
This is so fucking ridiculous
Them guys can't even read git push/pull errors and wonder why they make changes to the code but nothing happens10 -
THREE DAYS of debugging, reading all the logs I could find, creating tens of new logs in our appliaction, and SUDDENLY an email from your IT admin:
"Hey your CURL requests are being rejected by my !oh so secure! firewall rule".
Not that I haven't said at the beggining, that THIS IS YOUR F...G NETWORK PROBLEM because we get "connection reset by peer" errors, and you ASSURED that everything is CHECKED and OK!5 -
When you find this in production code and git blames you for this. Luckily no one can every see this log output, because the next statement closes the frame.
-
I'm debugging an error on the live server of a customer who has a special version of the system. and I don't have the right to login to test on the browser. I feel like I've been asked to kill that lion with a spoon...2
-
Dijkstra said if debugging it's the art of remove the bugs from the code, programming must be the art of putting bugs in the code.1
-
Solved my first sizeable bug ever.. The Euphoria is priceless .. I better enjoy this till team mates say this is another normal bug..
-
Last week I was studying Cocos2d-python, I had been awake for something like 35 hours, kept alive by cocacola and coffee, and while debugging I started to hear my rubber ducks talking, I've written their instructions on a blackboard, and now I'm working on that project...
And I was there like everything was normal, I had more caffeine and sugar in my body than water, I remember clearly saying "thanks weird talking duck!"2 -
when having a bug, instead of trying to prove, that you did everything right, start proving that you were wrong.
Then you'll get the yield earlier and you debug more efficient. -
Ok, a customer came to us saying he had a product that is just randomly rebooting. It sure must be a software issue.
I got the task and worked my way through ~10k lines of assembly code (8085 processor on board) Weeks go by, i tested every single god damn funktion they had, analyzed every vector they put in, finding NOTHING...
Meanwhile the hardware department analyzed and tested some possible culprits on the product for me. I had NO idea what the problem could be...
Then hardware department said: oh, they forgot a resistor on the FUCKIN RESET PIN OF THE PROCESSOR!!!!!
fml...5 -
A dev in the team just found out about JavaScript promises. Now he is putting them everywhere but never handling errors, so it's impossible to tell where the app is actually failing because the error points to the Babel polyfill and the stack trace is not long enough.1
-
I'm relatively new to the whole development and stuff, so I have no idea how usual process goes.
So when my project moved onto closed beta, I thought I could rest a bit.
NOPE.
Apparently half the shit I've done sucks so much and I need to debug the shit out of it.
Bless the testers.3 -
When I was an apprentice in a small company, ...
my boss told me that his company would never ship release builds, because the "evil optimization option" is responsible for breaking his code.
My first thought was that it wouldn't make any sense at all. The default option for code optimization is always set to zero.
After investigating his code, I found out that he didn't care to properly initialize his variables. The default compiler option for debug builds did implicitly initialize all variables to zero. After that I've confronted him with the fact that implicit null initialization does not conform to the standard of C and C++. He didn't believe me what I was saying and he was questioning my knowledge about C and C++. He refused to fix his code to this day, so he keeps building his libraries and applications always in debug mode.
Bonus fact: He would never build 64-bit applications, because his serialization functions do get incompatible with exisiting file formats. -
So, this has happened to me quite a few times
I write about 100 untested lines of code (I know, bad practice) and then go ahead to test it
As expected, the program crashes
Spend hours debugging, to no avail
And then I add a print statement to check where the code stopped, and hey presto! The code completes execution
I remove the print statement, the code gets stuck
Also, the codes don't use any low level functions that might be interfered by print statements anyhow
Till today, never understood how a print statement helps codes execute properly6 -
Have a contractor on at work who hand writes minified css. Counting down the weeks until that contract isn't renewed.4
-
Sometimes I wish that Google would let me set a flag like -defaultProgrammingLanguage so I stop correcting it everytime it gives me something different from than target language...2
-
the best part of Python is that while debugging others code you don't have to beg to indent the code :32
-
HIT THAT MOTHER!)#%Y!)!!! BREAKPOINT!!
...
...
...
...
God damn it, it's in Release configuration again.2 -
There are always days when everything related to school projects seems to hate me. In example we have to create a tunnel from our own computers to access uni's private server and suddenly mine stopped working. Me and my classmate were trying to figure it out for 1,5 hour and even our teacher didnt understand the hell was happening and in the end we found out that even tho we deleted the faulty line from host file the firefox still had it in its cache
-
Debug buddy/geeky trinkets thread, because I'm bored, I guess. Here are mine, from left to right:
> Dane-Elec (256 MB, DDR4) RAM stick that I have pretty much every time I go out. School, church, you name it. 256 MB shall always be with me.
> micro:bit (a development board aimed at schoolchildren) that acts as my debug buddy when I debug micro:bit code.
> Another micro:bit that I fried the USB chip on (I think it serves that purpose, might check the specs later) because I wanted to connect an LED to it (I know there's 25 red LEDs to use, but 26 never hurt anyone).
This one just sits in my drawer.
What do you guys have?6 -
Being mid-vacation and you remember you forgot to uncomment a 'file_put_content' line in a function for debugging purposes.. It's a script that runs 20 or more times within an hour and appends the entire script output to a file..
I hope the server can handle big text files..
Haven't recieved a phone call, so I guess it's still running.. :D1 -
Instead of actually fixing bugs, most of my latest PRs have been adding "debug features" that make me look productive but really just enable my total unwillingness to actually fix the bugs.1
-
Best debug ever?
Some years ago we had to do a web project as group. It was a cinema like website with backend and front-end.
So in the end we arrived at the presentation and while scrolling the code I found commented out some authentication controls 😅😆 (probably for debug reason lol)
Whatever, meanwhile, while I was talking with the professor two of my mates were whispering... Turns out they found what he mail service wasn't working. And what's best than fix it, push it to the Heroku server and restart all? XD
The professor noticed some little lag in a button and asked "what's happening?"
"oh, nothing we just restarted the server " -
When u converted ur codebase to Kotlin all because you heard about it, but really have no idea what Kotlin is!5
-
There should be a dev superhero. Like DevFace or Dr. Debug! And his special ability would be sth. like RealWorldInjection.
time.stop ()
car.engine.speed += 500
food.make ('Cheeseburger')
So many possibilities 😆😃 I would buy a ticket for the movie!2 -
When you are debugging a function, and dumps all the DBG variables, and then puts an exit() to stop the execution....
.
.
.
.
.
.
.
But now it runs perfectly without any bugs... 😭😭😭
FML. -
Never realized how often I use rubber duck debugging until I learned there was a name for it ͡° ͜ʖ ͡°1
-
Just now discovered how to debug over network in Android studio. Another way to flaunt a geek look at others today ☺☺
-
me printing some variables and function returns and such in <pre> tags while developing/debugging and immediately see designers' entries on bugherd saying the site doesn't work and shit my that. smh...1
-
had all four wisdom teeth pulled out last Saturday and been under pain killer otherwise I could neither chew shit nor sleep - feeling drowsy af but still have to server debug with another internal team - fml1
-
That moment when you find a function called with faulty arguments or a referece mistaken and fix it and code actually works now aaaaand you wake up.. i started to dream about the same code cause i keep rewriting it for different reasons.. what a life
-
What is the longest time any of you have been debugging one problem?
For me it was at my first internship where I was creating a multithreaded qt application. I had a problem that took me two weeks to figure out. I was trying to call a function from a qt thread when it wasn't the main thread. Took me two weeks to figure that out since it was my first time doing multithreaded applications, and the fix was dead simple.
Any similar stories?1 -
Client: How you will know if there is an error on your codes?
Me: I know it if the color of the text codes seems not right3 -
We had a debugging competition in college!! I was all excited abt it.. but it was a facepalm situation when I realised that the code had syntactical as well as logical errors while the purpose of the code was not specified 😂😂😂...
I was like.. what am i supposed to do??? Replace the entire code with hello world?!?!😂 -
Me: "ok let's have a look at this code I have to review ..."
try
{
* Some random unreadable overcomplicated shit code *
}
catch (Exception e)
{
// Useful for debug
}
😓
In which God forsaken crazy alternative universe, a "catch all" block that swallows the exception and does nothing else is even slightly close to the concept of "useful for debug"3 -
When you do the drag and remove of the react-native app on the phone and realise on the next build it doesnt work because i need to remove app from settings because it got disabled
Its Friday, i spent less time that younger me would have finding that. I consider it a successful debug session. -
Magento Debugging Horror!
Changing lots of things in magento with no problem. Continuing development for quite sometime. Suddenly decide to clear cache to see affect of a change on a template in frontent. Suddenly magento crashes! There's no error message. No exception log. No log in any file anywhere on the disk. All that happens is that magento suddenly returns you to the home page!
Reverting all the changes to the template. Clear the cache. Nope! Still the same! Why? Because the problem has happened somewhere in your code. Magento just didn't face it, because it was using an older version of your code. How? Because magento 2 even caches code! Not the php opcache. Don't get me wrong. It has it's own cache for code, in a folder called generated. Now that you cleared all the caches including this folder, you just realized that, somewhere something is wrong. But there is no way for you to know where as there is absolutely no exception logged anywhere!
So you debug the code, from index.php, down to the deepest levels of hell. In a normal php code, once the exception happens, you should see the control jumps to an exception handler, there, you can see the exception object and its call stack in your debugger. But that's not the case with magento.
Your debugger suddenly jumps to a function named:
write_close();
That's all. No exception object. No call stack. No way to figure out why it failed. So you decide to debug into each and every step to figure out where it crashes. The way magento renders response to each request is that, it calls a plugin, which calls a plugin loop, which calls another plugin, which calls a list of plugins, which calls a plugin loop, which calls another plugin.....
And if in each step, just by accident, instead of step through, you use the step over command of your debugger, the crash happens suddenly and you end up with the same freaking write_close() function with no idea what went wrong and where the error happened! You spend a whole day, to figure out, that this is actually a bug in core of magento, they simply introduced after your recent update of magento core to the latest STABLE version!!! It was not your mistake. They ruined their own code for the thousandth of time. You just didn't notice it, because as I said, you didn't clear the `generated` folder, therefore using an older version of everything!
Now that after spending 7 hours figuring out what has failed with absolutely no standard way of debugging and within a spaghetti of GOTO commands (Magento calls them plugin), why not report it to github? So you report it with a pull request. This also takes 1 hour of your time. Just to next day get informed that your pull request is rejected because another person already fixed the bug and made the same pull request. It was just not on the latest stable version yet!
So you decide to avoid updating magento as much as possible. Because you know that the next Stable version will make your life and career unstable. But then the customer complains that the Admin Panel is warning him of using old Magento version which might pose SECURITY THREATS! -
So yesterday and before school, I tried to make a little count down thingo that shows time left until the class ends with js. Earlier this morning I tested it and well
If a countdown timer counts up then I guess it works...
Well that was interesting. -
Every. Single. Time.
Push APK to device. Runs.
Make code change. Try to run - but device not shown in ADB list.
Only this sequence works, and not every time:
1. Turn off USB debugging on device
2. Turn off debug mode with toggle on device
3. Turn back on debug mode, then toggle USB debugging
4. Wait for prompt, allow debugging from computer.
If I check remember this computer, then I need to add the extra step to revoke authorizations.
Why. WHY Can't I just push to my device while its plugged in more than ONE TIME4 -
These god damn idiots!11!!
Why, for duck sake, php-fpm and xdebug are using the same standard port 9000?
There are thousands of different ducking ports you could choose from!
So each developer who wants to debug his php app served by php-fpm, has to adjust the port for xdebug on something like 9001 or 10000.
Whyyyyyyyyyyyyy!?!??
: /4 -
Nearly strangled a fellow dev after finding out he refuses to use xdebug and litters his code with `die()`statements instead2
-
Spent debugging for weeks, then found that error was I didn't add my header name in Access-Control-Request-Header option........COOOOOOOOOOOORS!!!!!6
-
That debug moment where you have 50+ different vs.net web projects in one solution and each of the said web projects were set up using point-and-click web references, then realised that the developer who created it did not even bother to let people know that you need to run it all simultaneously and did not bother to use host names but instead used the http://localhost:<some-random-port> in IIS express.
Oh, just to rub salt in the wound, each project's programming code files jumps from a mix of vb.net to c# which is a complete waste of time and energy to do.
Whoopdee do. The debug task from hell.1 -
Releasing to production while knowing there's a high chance there maybe a bug that may require a hot fix
-
I had to program a webservice in PHP (never touched it before). First of all, i get why this language is so much hated. Second i had to debug one function for 5h because of 'é' in my DB.... UTF8 FTW i guess.
Let's finish this by a pun
PHP is really a rich language. -
What i'll minded cocksucker decided it was a good idea to let the web application cache MySQL login credentials..3
-
I think it took me a year long how to upgrade myself from junior to senior. Today only I realized by putting multiple console.log() helped me to debug faster by at least 2x.3
-
Debugging a feature that has a reciprocal effect on an other feature is like being given the task to make a toggle switch perfectly flat.
"Oh look, I fixed that bug in feature A. But fuck, now there is a bug in feature B. Perfect, now the bug in feature B is gone. Ah crap now feature A is broken again"
FML -
CamanJS is a nice library and such but why does it's vignette function take a String as it's parameter for percentage!? It parses it by removing the '%' character and doing a parseInt()!2
-
I'm starting to grow fucking tired to fix bugs. I know this is a part of the development process, but shit, I've been doing this for two whole months now
-
Installed a new ionic plugin and no matter what I did it seemed unresponsive.
The plugin has a breakpoint in it ...
Fun stuff1 -
Working on a C# ASP.net application backend.
I need to send it from front a simple object but the controller doesn't fill the object in backend.
Time to debug (for at least 2 hours) before seeing that I forgot to JSON.stringify the data before sending it to the API...
F*CK !1 -
Use simple working code of an if statement and reject bad data with an error.
Get the same result but through properly using springs nested path errors. But it doesn't work so now you need to spend hours in debug hell through spring framework code for something that should be easy, is blocking another team, because I have no idea how to do my fucking job.1 -
me: "say, TL, why don't I see any debug/info/warn logs in dev/qa environments?"
TL: "Yeah, we've disabled them, the logs are too expensive (ApplicationInsights)"
thanks bro... go debug this shit yourself... -
Quick Plesk config question...
Been getting open_basedir() notices in the WordPress logs, and frankly it's flooding the log right now. Sample below:
[24-Feb-2019 07:05:19 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/webspacedomain.com/SiteInstallDirectory/wp-content/db.php) is not within the allowed path(s): (/var/www/vhosts/webspacedomain.com/:/tmp/) in /var/www/vhosts/webspacedomain.com/SiteInstallDirectory/wp-includes/load.php on line 397
Checking the settings for open_basedir in the domain's PHP settings, it's currently set to the following default value:
{WEBSPACEROOT}{/}{:}{TMP}{/}
By my read, that **should** be granting permission to the directory. I just checked it against the setting on the dev server (which doesn't report this error), and it's configured in the same manner. Only difference between Dev environment and this one is that the one in Dev is in vhosts/webspacedomain.net/DEV instead of just vhosts/webspacedomain.net
Is there something I'm missing here?4 -
Does anyone know how to bring the integrated console in VS code to a separate window ?
PS: Mac user here wants to see the debug window in another screen1 -
It used to work back then and I forgot how and why it doesn't work now. This is the ultimate pain scenario in debugging.
-
Arg! Learn to debug for your bleeding self you are supposed to be a bunch of senior developers it's the same bloody issues all the freaking time. So I create a step by step guide what buttons to click what text to enter because I'm so f***ing through with the same issues you bug me with day in day out! A 12 year old with no computing knowledge can follow the guides yet you don't even bother reading it half the time or choose to completely miss steps out and bug me with your issues.
Damn it why do I bother you bunch of ass hats get paid more than me too I know it! -
The amount of times I spent an embarrassing amount of hours debugging a string sanitation system while completely forgetting about \r is more than 0
Just sayin' -
There is always this moment where a family member needs your help by something computer related, sadly I don't have time at the moment of need but after some hours I get to it and "debug". Everytime I debug on my own PC I need like a full day but on a family PC I get done in like 30 seconds and of course they'll ask why I wouldn't have done it earlier if it's that easy 😢
-
Wanted to add a simple log entry when a model changes state in a certain way.
Unit tests pass, functional tests pass, manual tests through application GUI pass.
But for some fucking reason the single line logging call I added results in an error 500 when the application is accessed through a REST API.
Going to have a fun day tomorrow debugging this shit. -
Helping to debug others and being debugged is just deep satisfaction.
Willing to do this is for sure a gift -
So finally all bugs were fixed in the drone code, and we get a nice test score on the gvsoc. I got wrinkles from this intense debugging process.
Next step, testing on the hardware.
https://devrant.com/rants/2249612/... -
Fuck fucking Xcode that keeps closing the simulator every time I try to debug my app!!! Xcode developers, please refer here:
https://en.wikipedia.org/wiki/... -
Not being able to lol at "Monad is a monoid in the category of endofunctors." joke even after several readings of articles/guides online.
-
TL;DR Jump to the bottom, putting question first seems strange.
I got 2 servers sharing 1 external ip, i use one server for x y z and the other for a b c, so they dont use the same ports.
I got told i would need 1 dedicated ip per server, and i refuse to believe that since everything works fine. However, some things would definitely be alot easier having an ip per server.
So, does anyone have experience with getting an additional ip for your home connection?6 -
Been working on integrating mail gun into the MVP of the webapp I am creating. Couldn't figure out why I kept getting a 400 response. Check the mail gun documentation and realize that it's expecting post parameters not JSON...
Well there goes those 5 hours. -
Needed to get data from a server of SOMEONE ELSE (a server I can't change the configuration). But keep getting the same error. After a few hours of searching google finaly found an answer.
Only to find out that it had to do with the server configuration.
Fml -
Assured the boss that the app will be ready in minutes and only a simple callback implementation is yet to be made. Immediately discovered that the library is inconsistent with the docs and only thing possible is to file an issue. Way to go Facebook Fresco!
-
!rant
Hey guys I've got little question, sometimes it is more convenient to me to get the adb Debug informations in a terminal instead of Android Studio, is there any way ONLY show Logs from a certain level? Even after reading the docs I couldn't figure it out 😥😥😥 -
Most painful code!!
Well , it was to write a code in 'C' which will print first N times prime numbers. As a noob , it was really very painful.5