http://www.dirac.org/linux/gdb/. Or use google to find "gdb tutorials"
You can also use ddd. To install it on ubunto, type
sudo apt-get install ddd
Use valgrind to check memory problem. it is free available on your Linux
[ 此贴被steinlee在2009-01-24 00:09重新编辑 ]