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 > To: [EMAIL PROTECTED]; NS-List > 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