ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hey, there is another post in ROS Answers addressing how to debug a rosnode in Qtcreator: http://answers.ros.org/question/34966/debugging-ros-package-with-qtcreator/?answer=34977#post-id-34977
I think that the answer can be summarized to:
set(CMAKE_BUILD_TYPE Debug)
" to your CMakeLists.txt) "${CATKIN_WORKSPACE_FOLDER}"/devel/lib/package_name/node_name
and click "Start Watching".Note: you need to run qtcreator with "sudo", otherwise you get a "ptrace operation not allowed" problem. Note2: if you try to run qtcreator as a normal user afterwards, you will have problems accessing some of the Qt configuration files of your home folder, run these commands to get this back to normal:
sudo chown -R ${USER}:${USER} .qt
sudo chown -R ${USER}:${USER} .config/