[ns] C++ debug in NS2

Hai Nam hainam at gmail.com
Tue Jun 6 07:45:21 PDT 2006


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



More information about the Ns-users mailing list