You can add a line of code to print a few variables, but it may be easier to add a breakpoint at the same place and use the "info locals" and "info args" commands of gdb to display local variables and arguments.<p>When do people use print statements vs. gdb? I use print statements out of inertia but wonder if I should gdb more.