07-21-2023, 08:29 PM
It should also be mentioned, that [Set-PSDebug](
```powershell
Set-PSDebug -Trace 1
```
This command will result in showing every line of the executing script:
> When the `Trace` parameter has a value of `1`, each line of script is traced as it runs. When the parameter has a value of `2`, variable assignments, function calls, and script calls are also traced. If the `Step` parameter is specified, you're prompted before each line of the script runs.
[To see links please register here]
) is similar to the old-school `echo on` batch command:```powershell
Set-PSDebug -Trace 1
```
This command will result in showing every line of the executing script:
> When the `Trace` parameter has a value of `1`, each line of script is traced as it runs. When the parameter has a value of `2`, variable assignments, function calls, and script calls are also traced. If the `Step` parameter is specified, you're prompted before each line of the script runs.