Ranter
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
Comments
-
Eariel19068yI've found that logging to console it's easier than real debugging (with breakpoints, steps and such) when you have many threads and you don't know where the problem is. It helps you to make the range smaller.
-
@garadim valgrind is a program that checks for memory leaks and errors during the execution of another program. It can be pretty useful or a total pain in the ass to use
-
try {
throw new Exception ()
} catch (Exception e) {
print ( e.stacktrace() )
}
I find this an awesome trick for debugging as well. And yes, I know the code isn't technically correct in any language, but you get the point.
Related Rants
-
gururaju56*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx70This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus62Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
That moment when instead of debugging, you use cout to see the results...
undefined
gdb sucks
ddd
linux
c++