PowerTip: Use Cmdlet to Trace Script Execution

Doctor Scripto

Summary: Use a Windows PowerShell cmdlet to trace script execution.

Hey, Scripting Guy! Question How can I trace lines that execute in a Windows PowerShell script, without concern for variable assignments, functions, or external scripts?

Hey, Scripting Guy! Answer Use the Set-PSDebug cmdlet and set a trace level of 1:

Set-PSDebug -trace 1

0 comments

Discussion is closed.

Feedback usabilla icon