True warriors use printf debugging.
Quickly sticking in some printfs with some important info can be lifesaving (though it's probably because I am too lazy to learn to use a gdb).
I have OllyDbg(EDIT: Also WinDbg) but I usually uses it for disassembling. So I can't watch the varibles :D
EDIT: I just tried to compile a debug version but it says 'Can't find pthreadGC2.dll' Can anyone help?
It says that GDB runs under Unix. But I have Windows. Could you tell me how to use Ollydbg to read/write variables and see the stack?
mingw-get gdb
mingw-get install gdb
and you will have mingw version of gdb on your MSYSIt says 'command not found'. Weird, it works with the turtorial