Check the variable value in the All Variables tab

Did you know you can sort and filter all of the variables grids? Click the column heading to sort, or the filter icon to filter the variable grid.

Write the variables to the deployment log

This will log the variables available at the beginning of each step in the deployment as Verbose messages.

Open the Project ➜ Variables page

Set the following two variables:

Name

Value

OctopusPrintVariables

True

OctopusPrintEvaluatedVariables

True

It should look like this. You can have as many extra variables as you want besides these two.

Create a new release of the project or Update the variable snapshot for the release as shown above

Deploy the new release

Enable Verbose output on the Task log page

Expand the element corresponding to the Tentacle on which the problem is observed. Two sets of variables will be printed, first, the raw definitions before any substitutions have been performed, then the result of evaluating all variables for deployment.

For debugging only
When adding these variables to your project, Octopus will add the following warning to your deployment log
20:30:45 Warning | OctopusPrintVariables is enabled. This should only be used for debugging problems with variables, and then disabled again for normal deployments.
This is because printing variables increases the size of the task logs, and can make your deployments run slower. Don't forget to turn this off when you're finished debugging.