I see that environment from cmake.environment is applied in cmake, but not when debugging binary.
I also did ensure that I launch for debugging from the configuration in launch.json, and not configurationless (because it can have weirdness in applying environment, see here).
To make it clear, I actually want the current behavior, i.e. it is ok that the cmake environment is not applied when binary debugging. This mr just fixes documentation so it is correct.
The documentation is currently misleading.
cmake.environment
is not actually applied to the debug configuaration.I used the following code to print environment in binary launch:
and this code in CMakeLists.txt to print env vars in cmake process:
I see that environment from cmake.environment is applied in cmake, but not when debugging binary.
I also did ensure that I launch for debugging from the configuration in launch.json, and not configurationless (because it can have weirdness in applying environment, see here).
To make it clear, I actually want the current behavior, i.e. it is ok that the cmake environment is not applied when binary debugging. This mr just fixes documentation so it is correct.