How to debug nodelet manager?
Hi,everyone
I am a beginner of ros , and now I want to debug my code which has one nodelet manager and four nodelets. I add launch-prefix="gdb -ex run --args"
to nodelet manager in .launch
file,and also add -g
to CMAKE_CXX_FLAGS
in CmakeLists.txt
,but the xterm tells that no debug symbols was found.Could anyone tell me where i am wrong or give me some directions about the details to debug nodelet manager?
Thank you very much!
Your Sincerely
tyjin
Do you want to debug
nodelet_manager
itself, or your nodelets?If the former: you'll have to build
nodelet_manager
in your workspace with debug symbols enabled.If the latter: just make sure to build your own nodelets with debug enabled.
Hi gvdhoorn, Thank you very much. I want to debug nodelet_manager so that I can step through the code and set breakpoints at some line of code.I tried many options to enable debug symbols but failed. So please can you tell me what to add in CmakeLists.txt to make debug symbols enabled.
tyjin