[ns] debuggin ns2

2012-09-04 Thread Dejene B.

Hi all,

I want to debug ns-2  while running simulation using eclipse. I succeeded
in debugging ns-2 executable but now want to debug when running tcl code
simulation. I really appreciate if someone has tried before.
thanks,

-- 
*Dejene Boru*
*.
*
Graduate Student-Telecom Eng
University of Trento
Via  Brennero 150
Trento, Italy
dejeneboru.oljir...@unitn.it
djz...@gmail.com
0039-388-998-1919

*
*


Re: [ns] debuggin ns2

2012-09-04 Thread Saravanan Kandasamy

Hi,

NS2 as you already know has two part, the TCL part for the front end
and C++ part for the back end.

To Debug C++ you can you test based debugging tool such as GDB or GUI
based debugging tool such as Eclipse or DDD.

I assume you are looking for a TCL Debugger. There are several you may
try TCL Debug (Don Lib) or the improved version of it such as NSTK
(TCL Debug+Mash+TKCON)

rgds
Saravanan K

On Tue, Sep 4, 2012 at 2:54 PM, Dejene B. djz...@gmail.com wrote:

 Hi all,

 I want to debug ns-2  while running simulation using eclipse. I succeeded
 in debugging ns-2 executable but now want to debug when running tcl code
 simulation. I really appreciate if someone has tried before.
 thanks,

 --
 *Dejene Boru*
 *.
 *
 Graduate Student-Telecom Eng
 University of Trento
 Via  Brennero 150
 Trento, Italy
 dejeneboru.oljir...@unitn.it
 djz...@gmail.com
 0039-388-998-1919

 *
 *



Re: [ns] debuggin ns2

2012-09-04 Thread Dejene B.

Thanks a lot for your feedback, I will try both suggestions!

On Tue, Sep 4, 2012 at 7:58 PM, Aslinda Hassan aslinda.has...@mun.cawrote:

 Hi..

 To debug ns-2 in eclipse while running tcl code simulation:

 In the Eclipse menu:

 Select Run-Run Configuration
 In the Run Configuration windows - select your ns2 configuration - select
 Arguments tab
 In Program arguments field: put the name of your tcl file name (include
 full
 path of the file if you store the file in different folder)
 Select run

 If you provide the correct path of the file, you should be able to see the
 simulation running in the Eclipse console.  If you want to debug, just
 select debug icon in eclipse.

 Good luck

 Aslinda Hassan
 Faculty of Engineering and Applied Science
 Memorial University og Newfoundland



 -Original Message-
 From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf
 Of Dejene B.
 Sent: Tuesday, September 04, 2012 11:24 AM
 To: ns-users@ISI.EDU
 Subject: [ns] debuggin ns2


 Hi all,

 I want to debug ns-2  while running simulation using eclipse. I succeeded
 in
 debugging ns-2 executable but now want to debug when running tcl code
 simulation. I really appreciate if someone has tried before.
 thanks,

 --
 *Dejene Boru*
 *.
 *
 Graduate Student-Telecom Eng
 University of Trento
 Via  Brennero 150
 Trento, Italy
 dejeneboru.oljir...@unitn.it
 djz...@gmail.com
 0039-388-998-1919

 *
 *




-- 
*Dejene Boru*
*.
*
Graduate Student-Telecom Eng
University of Trento
Via  Brennero 150
Trento, Italy
dejeneboru.oljir...@unitn.it
djz...@gmail.com
0039-388-998-1919

*
*