(Please add appropriate labels)
Plugin version 0.6.9
Bug description
I am developing ROS nodes in a remote Docker container.
I followed the document at https://github.com/ms-iot/vscode-ros/blob/master/doc/debug-support.md to set up my debugging environment to debug via a ROS launch file.
In the Run and Debug window of VSCode, when I run ROS: Launch from the upper left corner of VSCode window, the process runs but terminates with the following message:
Unable to start debugging. Launch options string provided by the project system is invalid. Unable to determine path to debugger. Please specify the "MIDebuggerPath" option.
This is my launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ROS: Launch",
"request": "launch",
"target": LAUNCH_FILE_PATH,
"type": "ros",
"preLaunchTask": "make_debug", // <<< This is the task that will run before debugging starts
}
]
}
This is my tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "make_debug",
"type": "catkin_make",
"args": [
"--directory",
"${workspaceFolder}",
"-DCMAKE_BUILD_TYPE=Debug", // This extra argument enables built with debug symbols
],
"problemMatcher": [
"$catkin-gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
},
]
}
I'm new to VSCode, it would be great if I can get more perspectives or a potential solution out of this. Thank you!
Repro steps
Please see the above bug description
expected behavior
Allow me to set breakpoint and debug