The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-09-2008
ps_sach ps_sach is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 13
Quote:
Originally Posted by jim mcnamara View Post
compile -g and then get into gdb - example
Code:
gcc -g -o myprog myprog.c
gdb myprog
gdb> break main
gdb> r [any command line args go here]
... commands as needed here
the step command step one line at a time, print <variable name> displays a variable.
help lets you see all of the commands.
Thanks Jim.