Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

The Art of Debugging

Name: Anonymous 2010-01-20 14:44

Hi /pr/

I'm fundamentally a programmer at heart... and my boss decided this week I should opt in and cover some debugging of the code we write around here.

I haven't really got so much knowledge about debugging, jerked around some with gdb and that's it.

My position here is a bit unsure with the economic hardships and all and if I can't cover both tasks maybe they'll find someone who will.

tl;dr I need to learn how to debug C code, halp plz.

Name: Anonymous 2010-01-20 14:45

valgrind

Name: Anonymous 2010-01-20 14:50

Everywhere that there's a * try taking it out, see if it works better.

Name: Anonymous 2010-01-20 14:52

How can you be a programmer, but not have used a debugger?

Name: Anonymous 2010-01-20 14:59

>>4
I am very, very thorough. I can write thousands of non-trivial lines of code and perhaps less than ten errors are made, most of them trivial stuff.

Name: Anonymous 2010-01-20 15:00

>>5
...so debugging MY code hasn't exactly required much effort.

Sorry for split post :/

Name: Anonymous 2010-01-20 15:00

>>1
Hi /pr/

i dont know what to say.

Name: Anonymous 2010-01-20 15:13

It's just a skill you develop with time. It's more about intuition and understanding your own code as well as other people's code. Having good tools helps.

Name: Anonymous 2010-01-20 15:29

>>5,6
I lol'd

Name: Anonymous 2010-01-20 17:46

Binary search. Learn to love it.

>>5,6
KNUTH QUALITY

Name: Anonymous 2010-01-20 20:19

>>4
This. A programmer who's never used a debugger...

Name: Anonymous 2011-02-03 3:49

Don't change these.
Name: Email:
Entire Thread Thread List