- Create Project using Project Wizard, and then select custom Makefile since we already have one in ns-2.35 directory
- Go to project setting to set the working directory
- Remember to modify Makefile add -g setting for debug
- Enable gdb debug, then you can add breakpoint like visual studio.
- Remember to right click the project, and select to "Import File(Directorys)...", in the filter, remember to add "*.cc;*.tcl" to add cc and tcl scripts
http://stackoverflow.com/questions/7832892/how-to-change-the-default-gcc-compiler-in-ubuntu/7834049#7834049
http://stackoverflow.com/questions/14997275/gdb-and-ns2-how-to-stop-program-at-some-function-call
沒有留言:
張貼留言