Showing archive results for July 2015

Jul 14, 2015
Post comments count0
Post likes count0

PowerTip: Enable Script Tracing in PowerShell Functions

Doctor Scripto

Summary: Enable script tracing into and out of Windows PowerShell functions.  How can I trace my script execution into and out of Windows PowerShell functions?  Use the Set-PSDebug cmdlet and set a trace level of 2: Set-PSDebug  -Trace 2

Scripting Guy!Windows PowerShellPowerTip
Jul 14, 2015
Post comments count0
Post likes count0

More PowerShell Script Tracing and Strict Mode

Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks more about Windows PowerShell script tracing and enabling strict mode. Microsoft Scripting Guy, Ed Wilson, is here. It can be somewhat painful to troubleshoot intermittent errors with Windows PowerShell. Two things that can lead to this are variables that do not get initialized properly (and theref...

Scripting Guy!Windows PowerShellscripting techniques
Jul 13, 2015
Post comments count0
Post likes count0

PowerTip: Use Cmdlet to Trace Script Execution

Doctor Scripto

Summary: Use a Windows PowerShell cmdlet to trace script execution.  How can I trace lines that execute in a Windows PowerShell script, without concern for variable assignments, functions, or external scripts?  Use the Set-PSDebug cmdlet and set a trace level of 1: Set-PSDebug -trace 1

Scripting Guy!Windows PowerShellPowerTip
Jul 13, 2015
Post comments count0
Post likes count0

Tracing the Execution of a PowerShell Script

Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using a cmdlet to trace the execution of a Windows PowerShell script.  Hey, Scripting Guy! I am having a problem with a script. It does not generate any errors, but dude, it does not seem to work either. Can you help me debug it? —DR  Hello DR, Microsoft Scripting Guy, Ed Wils...

Scripting Guy!Windows PowerShellscripting techniques
Jul 12, 2015
Post comments count0
Post likes count0

PowerTip: Find All Breakpoints in PowerShell Session

Doctor Scripto

Summary: Find all breakpoints for a Windows PowerShell script.  How can I see the debugging breakpoints that are set in my current Windows PowerShell session?  Use the Get-PSBreakpoint cmdlet.

Scripting Guy!Windows PowerShellscripting techniques