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

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -