24. Debugging ns

ns is a simulator engine built in C++ and has an OTcl (Object-oriented
Tcl) interface that is used for configuration and commands. Thus in order
to debug ns we will have to deal with debugging issues involving
both OTcl and C++. This chapter gives debugging tips at Tcl and C++
level and shows how to move to-fro the Tcl and C++ boundaries. It also
briefly covers memory debugging and memory conservation in ns.