Documentation: $PATH in launch.json configuration for VS Code debugging.
An error in the documentation on the page
https://vector-of-bool.github.io/docs/vscode-cmake-tools/debugging.html
In the section on configuring launch.json, the line that reads
"value": "$PATH:${command:cmake.launchTargetDirectory}"
should read
"value": "${env:PATH}:${command:cmake.launchTargetDirectory}"
Visual Studio code does not do any substitutions on $PATH
. The correct syntax is ${env:PATH}
.
Tested on
VSCode v 1.65.0 (February 2022 version).
cmakeversion 3.18.4.
OS: Raspberry Pi Os
Linux raspberrypi 5.10.103-v8+ #1530 SMP PREEMPT Tue Mar 8 13:06:35 GMT 2022 aarch64 GNU/Linux
Edited by Robin Davies