By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,233 Members | 1,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,233 IT Pros & Developers. It's quick & easy.

debugging in unix

P: 12
how to debug C programs in Unix
Sep 26 '06 #1
Share this Question
Share on Google+
1 Reply


P: 23
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
Sep 26 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.