There also insight  which can be found on
http://sources.redhat.com/insight/ and several other GUI frontends for
GDB like KDbg (http://www.kdbg.org/) which is a clean and easy to
learn debugger based on QT. Please notice that debugging on Linux
means pretty much interacting with GDB whatever the tool you're using.
So getting more experience with it is really an added value.

Please note, in order to debug NS, you have to build it in O0 -g mode
to respectively disable any optimization done by the compiler and to
generate debugging symbols and source code references in the final
executable. You can do this by manipulating CFLAGS within

Best regards,
Ilyes Gouta.

On 6/6/06, Pedro Vale Estrela <[EMAIL PROTECTED]> wrote:
> How need to take the time to learn a real debugger like DDD. Make a small
> test program yourself in C, 10 lines are sufficient, then debug in inside
> DDD to learn the debugerr
> http://heather.cs.ucdavis.edu/~matloff/ddd.html
> http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging.html#_Toc122255042
> Only then move to NS2. DDD is a very important investment to do in NS2
> programming
> > -----Original Message-----
> > From: Hai Nam [mailto:[EMAIL PROTECTED]
> > Sent: terça-feira, 6 de Junho de 2006 15:45
> > Subject: C++ debug in NS2
> >
> > Hello Pedro and the list,
> >
> > I'm modifying NS-2 C++ code. Sometimes I get the "incident de
> > segmentation" error. By commenting out some code, I can know from
> > which function goes this error, but it'll take more time to filter the
> > right code block...
> >
> > Could you propose a debugger for me (I don't have much experience in
> > this programming language) ? Besides commenting out some code, or put
> > some "printf", I don't know where to start (even I debugged in some
> > small files, I know how to put breakpoints...). In Eclipse there's
> > tool for debug, but I reallly really don't know how to use. After a
> > modification in code, I run NS by "make clean;make" then I run "ns
> > example.tcl".
> >
> > Thanks in advance,
> >
> > --
> > Hai-Nam NGUYEN
> > http://www.jcisio.com

Reply via email to