Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Set-PSDebug

Set-PSDebug - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Set-PSDebug

Short description
Turns script debugging features on and off, sets the trace level, and toggles strict mode.

Syntax


Description
The Set-PSDebug cmdlet turns script debugging features on and off, sets the trace level, and toggles strict mode. 

When the Trace parameter is set to 1, each line of script is traced as it is executed. When the parameter is set to
 2, variable assignments, function calls, and script calls are also traced. If the Step parameter is specified, you
 are prompted before each line of the script is executed.