星期六, 3月 26, 2016

ns2 codelite debug gdb ubutnu 14.04 Setting

  1. Create Project using Project Wizard, and then select custom Makefile since we already have one in ns-2.35 directory
  2. 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  
ref: gcc setting in ubuntu 14.04, I have setting to gcc-4.4 and g++4.4, you need to do yourself

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

沒有留言: