+1 on learning to use gdb. It is actually really intuitive and easy to use.