Recent release of ns-2.32 enable Tk for ns-2. Patches contributed by Pedro Vale Estrela: Pedro's debugging page: http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html
Here's a patch that I created for enabling all the debug features,described on the page above, only with a few commands. Extract it in the ns-allinone-2.32 directory, cd ns-allinone-2.32/debug-allinone ./debuginstall cd .. ./install source debug-allinone/addpath (You can run "debuginstall" either before or after installing ns-allinone-2.32) After these step, you can do both c++ debugging and tcl debugging. Further guide after installing the debug tools: http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html -- Regards -Ye