Certainly its the best approach to debug if you want to keep yourself out
side the program code during 'runtime'.

I guessed you're using gcc. It got a '-g' option to enable debugging. What
man page says about '-g':

       -g  Produce debugging information in the operating sys-
           tem's native format (stabs, COFF, XCOFF, or DWARF).
           GDB can work with this debugging information.

Yes, you need gdb to taste the real debug experience. In gdb you're inside
the code and a part of 'runtime' environment. You will be able to set
breakpoints, watch, trach or catch a variable etc. I guess, by nature of
your wark, you're looking for something like gdb. 'man gdb' is your friend,
you know.

Regards,

--Sifat




On 3/27/06, Golam Mustafa <[EMAIL PROTECTED]> wrote:
>
> thanks for the information.
> it will certainly help me.
> i request linux experts from bdlug to hold seminar on different
> important topics on monthly or weekly basis.
> with regards,
> mustafa
>
>
>
> On 3/27/06, ashrar ahmed <[EMAIL PROTECTED]> wrote:
> >
> >
> > we use to debug in linux using DEBUG mecro. someting
> > like:
> > ____________________________________________
> > if (DEBUG)
> >    printf ("...");
> > ____________________________________________
> >
> > and defineing the DEBUG mecro like:
> >
> > #ifdef DEBUG
> > #define DEBUG 1
> > #endif
> > ____________________________________________
> >
> > and debug mode compilation is like:
> > gcc -o program program.c -D DEBUG=1
> >
> > and normal mode:
> > gcc -o program program.c
> > ____________________________________________
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> > To unsubscribe send a blank mail to:
> >       [EMAIL PROTECTED]
> >
> >
> >  ------------------------------
> > YAHOO! GROUPS LINKS
> >
> >
> >    -  Visit your group "bdlug <http://groups.yahoo.com/group/bdlug>" on
>
> >    the web.
> >
> >    -  To unsubscribe from this group, send an email to:
> >     [EMAIL PROTECTED]<
> [EMAIL PROTECTED]<http://[EMAIL PROTECTED]/?subject=Unsubscribe>
> >
> >
> >    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >    Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >  ------------------------------
>
> >
>
>
>
> --
> Sky is the Limit !
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> To unsubscribe send a blank mail to:
>       [EMAIL PROTECTED]
>
>
>
>  SPONSORED LINKS
>   
> Bangladesh<http://groups.yahoo.com/gads?t=ms&k=Bangladesh&w1=Bangladesh&w2=Linux+user&w3=Bangladesh+flag&w4=Dhaka+bangladesh&c=4&s=75&.sig=OQyLzzCB-DgysD__72acwQ>
>  Linux
> user<http://groups.yahoo.com/gads?t=ms&k=Linux+user&w1=Bangladesh&w2=Linux+user&w3=Bangladesh+flag&w4=Dhaka+bangladesh&c=4&s=75&.sig=FuwemFZd6tIqoHSI19mZiQ>
>  Bangladesh
> flag<http://groups.yahoo.com/gads?t=ms&k=Bangladesh+flag&w1=Bangladesh&w2=Linux+user&w3=Bangladesh+flag&w4=Dhaka+bangladesh&c=4&s=75&.sig=roVdwRCjc2chdPIU924JJA>
>   Dhaka
> bangladesh<http://groups.yahoo.com/gads?t=ms&k=Dhaka+bangladesh&w1=Bangladesh&w2=Linux+user&w3=Bangladesh+flag&w4=Dhaka+bangladesh&c=4&s=75&.sig=CaczyHXcoN7z94IEDmAWCg>
>  ------------------------------
> YAHOO! GROUPS LINKS
>
>
>    -  Visit your group "bdlug <http://groups.yahoo.com/group/bdlug>" on
>    the web.
>
>    -  To unsubscribe from this group, send an email to:
>     [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>
>    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>    Service <http://docs.yahoo.com/info/terms/>.
>
>
>  ------------------------------
>


[Non-text portions of this message have been removed]



To unsubscribe send a blank mail to:
        [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/bdlug/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to