Or just debugging in general, how do you like to go about finding bugs in code. Specifically for C/C++, but all languages in general. I\'ve been trying to find the cause of
RMS made a good tutorial for finding a segfault using gdb.
Short version:
$ gcc -g -O0 -o program program.c # -O0 makes debugging easier
$ gdb ./program
> run # Tell gdb to start running the thing
...segfault happens
> bt # Get a stack trace from where it segfaulted