Write the name
or label
fields in the launch.json
and tasks.json
files according to the format:(You are supposed to name them like XXX_Debug
or XXX_Build
)
{
"version": "0.2.0",
"configurations": [
{
"name": "python_Debug",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "rust_Debug",
"type": "lldb",
"request": "launch",
"program": "${fileDirname}/../../target/debug/${fileBasenameNoExtension}",
"args": [],
"cwd": "${fileDirname}/..",
"console": "externalTerminal",
"preLaunchTask": "rust_Build"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "rust_Build",
"type": "cargo",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"options": {
"cwd": "${fileDirname}/.."
}
},
{
"label": "python_Build",
"type": "shell",
"command": "echo",
"args": [
"Python does not require a build step."
],
"problemMatcher": []
}
]
}