Hi
gdb is powerfull linux debugger. one of its advantages is that works in text mode.
for debugging your program you can start
Code:
gdb yourprogramname
then in gdb you type
then gdb executes your program
if your program doesn't exit succesfully, running your program is breaked and you can type
to see call stack
and
to see variables' name.
you can add breakpoints and etc in running your program.
for furhter assistant you can type
in gdb command line or
see it's manual page
Have a time with linux,
Mohammad