The tcl-debugger has some bugs.

In pratice, I only use the debugger to stop the code somewhere and inspect
some variables, and NEVER to step trough the code (because the debugger
lacks object TCL capabilities.)

For that, check  http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html

Pedro Vale Estrela



--------

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of landrew
> Sent: segunda-feira, 21 de Maio de 2007 2:45
> To: ns-users
> Subject: [ns] tcl-debugger cannot use command 'w' to watch call stack
> 


hi,everybody

i'am using ns2.31,and i use tcl-debugger2 for debugging.
all things in debugging are ok except that after i use 'w' command to watch
call stack, then when i use the next command , most of the time i'll get a
core dump.
messages are following :

dbg11.5> s
10: if [catch "$self cmd $args" ret] {
set cls [$self info class]
global err...
dbg10.6> w
 0: application
 1: _o17 {_o17} {MobileNode/ResourceAwareNode} {start-app}
 2: _o26 {_o26} {Application/LEACH} {start}
 3: _o26 {_o26} {Application/LEACH} {mac}
 4: _o26 {_o26} {Application/LEACH} {node}
*5: _o26 {_o26} {SplitObject} {unknown} {agent}
 10: if {0} {
set cls [$self info class]
global errorInfo
set savedInfo $erro...
dbg10.7> s
./leach_test: line 51:  1048 Aborted                 (core dumped) ns
tcl/ex/wir
eless_leach.tcl -sc mit/uAMPS/sims/nodescen -rp $alg -x $x -y $y -nn $nn
-stop $
stop -eq_energy $eq_energy -init_energy $init_energy -filename $filename
-dirnam
e $dirname -topo $topology_file -num_clusters $num_clusters -bs_x $bs_x
-bs_y $b
s_y 2>$dirname/$filename.err



i've installed ns2 and tcl-debugger in cygwin and fc6, I found the same
error.
thanks!





Reply via email to