[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help in debug
Kannan, Thanks for the mail. I am using gdb only for the purpose. I also
recompiled ns with tcl-debug included. With this in place, I am able single-step
through the TCL scripts..
I guess you are talking about the stuff under the heading 'Mixing Tcl and C
debugging'. I am having little difficulty in understanding this script.
I am very first-time user of ns as well as TCL scripts.. Some explanation
regarding what each step is doing may be helpful to a beginner like me.
I started ns in debug mode with gdb. And passed the my test script along
with the required options. Then I am confused how to the breakpoint on
'AddressClassfier' as mentioned in the script..
Bye
T.Srinivasa Rao
>
> Srinivasa Rao,
>
> Here are three suggestions:
>
> 1. Use gdb to do your C++ debugging
>
> 2. Get tcl-debug1.17 (check the installations web page for
> how/where to get it),
> and make sure that ns is built with tcl-debug. You may have
> to reconfigure and recompile.
>
> The ns web page describes (shows through a gdb script),
> how you can interact with tcldebug through gdb.
>
> 3. The simulator method, gen-map, dumps a trace of the topology,
> that also helps in identifying the particular object you are
> looking at in gdb, and its relation to the complete topology.
>
> You can get this output when you are interacting with the tcl-debugger.
>
> Hope this helps,
>
>
> Kannan
>
> PS: If you have specific suggestions on how the debugging
> web page can be improved, we'd like to hear them as well.
>
> --
> [email protected]
> http://www.isi.edu/~kannan
>