I would like to output variables and values out in a PowerShell script by setting up flags and seeing the data matriculate throughout the script.
How would I do thi
It should also be mentioned, that Set-PSDebug is similar to the old-school echo on batch command:
Set-PSDebug -Trace 1
This command will result in showing every line of the executing script:
When the
Traceparameter has a value of1, each line of script is traced as it runs. When the parameter has a value of2, variable assignments, function calls, and script calls are also traced. If theStepparameter is specified, you're prompted before each line of the script runs.