Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use Cmdlet to Trace Script Execution

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles