Hello Matt, A while ago I followed the steps in that FAQ to enable the debugging in ns2 and it worked fine with me. I used gdb to debug my C++ code as follows: gdb ns run my_tcl_script.tcl
My code used to give me segmentation fault and I used gdb to find out where the problem was. I debug my Tcl code using "puts" to print on the output what is happening. I know it is not much efficient but till now it was sufficient. Best regards, On Sun, Dec 21, 2008 at 11:37 AM, matt Wood <withhighp...@gmail.com> wrote: > > Dear friends, > I've read the ns-doc chap24 and chap28, and followed the > instructions (Q3) found in > http://web.syr.edu/~dchen02/FAQ.txt<http://web.syr.edu/%7Edchen02/FAQ.txt>, > but > when I try to debug using '$gdb ns' it says: no debugging symbols > found. > > Same questions can be found in the mail-list but they still > remain unresolved. Please tell me if this 2.33-allinone can be > debugged by gdb. And if it is not, what debugging method can I use if > I want to add a new MAC protocol? > > Thank you in advance. > > Yours sincerely, > Matthew Wood > > -- Waleed Tuffaha.