debugging in unix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rajiv Gupta
    New Member
    • Sep 2006
    • 12

    debugging in unix

    how to debug C programs in Unix
  • koder
    New Member
    • Sep 2006
    • 23

    #2
    Hi Rajeev,
    u can use GNU debugger,which is simply known as GDB
    please make an executable of the program
    steps given below

    $gdb exe_name
    then were ever u need to put break points, use the command 'b function name'

    if u wanted to print a variable content, use "p variable name"

    u can get some info by using a $man gdb

    or try google, for gdb+mannual+pdf u could get the original GNU mannual on it
    regds

    Comment

    Working...