After reading this support doc, I have created a Variable Set “Octopus Debug Output” with two variables: (1)OctopusPrintEvaluatedVariables and (2)OctopusPrintVariables
I set a default value of ‘False’ for each variable, and define another value of ‘True’ scoped to something specific; an environment, role, or target (or any combination of).
In the context of a new release and deployment of a project that does not fall under the ‘True’ value’s scope, but has had the variable set included, the following is witnessed:
Variable Preview indicates that the two variables will evaluate to false
Reviewing the evaluated variables for the release using “Variable Snapshot” presents values aligned with Variable Preview; false
Reviewing Task Log for the release deployment shows warnings that the two variables are enabled.
It appears as though any truthy value present in the Variable Set, regardless of applicable scope, causes the functionality of the logging to differ from use cases where scope is necessary to evaluate a variable where it should not.