Debug 쉽게하는 법[C++, ROS]
19 Oct 2021 | ROS
C++ DEBUG
-
firstly, created .o file for source code.(Cmake or using some compiler)
- GO TO RUN & BUG
- create json
- choose type of debug type(in this case, C++, and RECOMMAND LAUNCH)
-
change execute path
- run launch.json.
ROS DEBUG
- debug mode compile
- catkin_make -DCMAKE_BUILD_TYPE=Debug
- GO TO RUN & BUG
- create json
- choose type of debug type(in this case : ROS launch(roslaunch), ROS attach(for rosrun))
{
"name": "ROS: Launch",
"type": "ros",
"request": "launch",
"target": "absolute path to launch file"
},
{
"name": "ROS: Attach",
"type": "ros",
"request": "attach"
},
-
change path.
-
run roscore
-
run debug
- if attach mode, run rosrun file and run debug.
reference
https://github.com/ms-iot/vscode-ros/blob/master/doc/debug-support.md
C++ DEBUG
-
firstly, created .o file for source code.(Cmake or using some compiler)
- GO TO RUN & BUG
- create json
- choose type of debug type(in this case, C++, and RECOMMAND LAUNCH)
- create json
-
change execute path
- run launch.json.
ROS DEBUG
- debug mode compile
- catkin_make -DCMAKE_BUILD_TYPE=Debug
- GO TO RUN & BUG
- create json
- choose type of debug type(in this case : ROS launch(roslaunch), ROS attach(for rosrun))
- create json
{
"name": "ROS: Launch",
"type": "ros",
"request": "launch",
"target": "absolute path to launch file"
},
{
"name": "ROS: Attach",
"type": "ros",
"request": "attach"
},
-
change path.
-
run roscore
-
run debug
- if attach mode, run rosrun file and run debug.
reference https://github.com/ms-iot/vscode-ros/blob/master/doc/debug-support.md
Comments