Keymaster
Just try the following two links.
It will explain a very user friendly GUI based software called “ddd” – it will internaly use gdb for debugging.
http://mailman.isi.edu/pipermail/ns-users/2007-January/058498.html
and
http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html
But, I hope that, debugging ns2 code is not that much simple for a ‘beginner of ns2’.
Participant
To use gdb
type gdb ns
once you have the gdb prompt
gdb > run filename.tcl
Discuss Through WhatsApp