- When you configure ns, you have to use the flag --enable-debug in order to generate the appropriate symbols for debugging. Then when you open the ns executable with DDD, you will be transferred to the source files and you will be able to debug the whole source code of NS-2.
Remeber though that you have to ./configure --enable-debug (along with any other parameters that you may wish to use) and then re-execute make clean, make depend and make. Kind Regards, -Fk On 3/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > ---------- Forwarded message ---------- > From: "pankaj chand" <[EMAIL PROTECTED]> > To: [email protected] > Date: Thu, 01 Mar 2007 04:16:39 +0530 > Subject: [ns] debuggin c++ in ns hi can anyone please tell how to debug the c++ source code in ns. after > adding the -g and several other statements in the makefile.in and install > file, im able to debug but the debugger cannot find the source code, and > hence cannot show me the line of code which is raising the error (bug). > i am calling the debugger on the ns binary executable in the > ns-allinone2.29/bin folder. > how do i make the debugger, GDB or DDD find the source code of the ns > program so as to find the exact line of code that is generating the bug. > > thanks in advance. > pankaj chand > mail address: [EMAIL PROTECTED] > > _________________________________________________________________ > "Airtel Song Catcher. Get your Hello Tunes instantly" > http://www.airtel.in/songcatcher/SONG_CATCHER.html > > > > --===============1688439445==-- > _______________________________________________ > Ns-users mailing list > [email protected] > http://mailman.isi.edu/mailman/listinfo/ns-users > > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications Automation & Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] ----------------------------------------------
