View the values of variables in Automator on Mac
If you are debugging a workflow that uses variables, use the Variable log to view the values contained by the variables when the workflow runs.
Choose View > Variables.
The Variable log is displayed in the Log area.
As your workflow runs, the values of the variables are displayed in the log.
To run your workflow one step at a time to see the point where variables change, choose Workflow > Step.