c - program variable values during execution -


is there way value of variables in c during each execution step of program.

some other method except gdb.

thanks in advance -sahil

the debug statements talking printfs marcadian pointed out, have manually, don't know other way in can tell compiler build executable such automatically print variables except gdb. have compile file : gcc -g file.c -o output.o. -g flag constructs table gdb, have @ tutorials online http://www.cprogramming.com/gdbtutorial.html on how use afterwards.

edit: info locals quite useful print local ones


Comments