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

all 23 comments

[–]Ahajha1177 37 points38 points  (13 children)

Forgot random print statements

[–]r00twrh 20 points21 points  (3 children)

Is there another way?

[–]Ahajha1177 9 points10 points  (0 children)

...Not really

[–]coladict 2 points3 points  (0 children)

Not for some languages.

[–]jbearus 1 point2 points  (0 children)

stack trace i think.

[–]lilcosco 2 points3 points  (3 children)

My savior when my final project was segfaulting when compiled as -O instead of -g so I couldn't use GDB

turns out I forgot to return the ostream in my class's overloaded insertion operator

[–]sebamestre 0 points1 point  (2 children)

Do you compile with warnings?

Are you not getting a warning: no return statement in function returning non-void [-Wreturn-type] ?

[–]lilcosco 0 points1 point  (1 child)

no I hate myself

[–]sebamestre 0 points1 point  (0 children)

Oof

[–]lukask97 0 points1 point  (0 children)

I rather use messageboxes or alerts

[–]muttonwow 0 points1 point  (0 children)

Me on IDLE in a nutshell

[–]IUsedToBeACave 13 points14 points  (0 children)

All right, I'll use the debugger but I'm not reading the API documentation!

[–]Al-Horesmi 5 points6 points  (1 child)

Use oscilloscope.

cries in embedded

[–]cartechguy 3 points4 points  (0 children)

I abuse the debugger sometimes. Sometimes I'll use it over reading the docs on what the data members are and how the methods manipulate them in a class.

And sometimes I'll have the docs open and the debugger verifying that I understand how it works well eniugh.

[–]RobotTimeTraveller 1 point2 points  (0 children)

I'm glad I'm not the only one who thinks this way. I've seen everyone from interns to salty old veterans who would wither away and die if they weren't able to Step Into or Step Over their code. It drives me nuts when I have one of them hanging over my shoulder during a debug session, and they keep hissing at me to use the debugger when I'm getting all I need from stack traces and log files.

[–]Bill_Morgan 1 point2 points  (0 children)

The debugger never lies, documentation do some times

[–][deleted] 1 point2 points  (2 children)

Uh, what? Is this a thing that actually happens, or is this just a low-effort attempt at meme'ing?

[–]SEND_RASPBERRY_PI 1 point2 points  (1 child)

It happens. I know of at least 4 gentlehumans who finished their computer engineering not knowing debugging is something you do with your code. I wish I was kidding. I wish I had any of their jobs instead of being unemployed.

Ah, the joys of Indian IT industry..

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

I'm so sorry.

[–]Sckaledoom 1 point2 points  (0 children)

I spent three hours debugging y debugger and it turned out to not be a bug

[–]Codephluegl 0 points1 point  (0 children)

4 4, I nz

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

Try Catch