July 14th, 2015

PowerTip: Enable Script Tracing in PowerShell Functions

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback