PowerTip: Enable Script Tracing in PowerShell Functions

Doctor Scripto

Summary: Enable script tracing into and out of Windows PowerShell functions.

Hey, Scripting Guy! Question How can I trace my script execution into and out of Windows PowerShell functions?

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

Set-PSDebug  -Trace 2

0 comments

Discussion is closed.

Feedback usabilla icon