Setting a Breakpoint on a Variable

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using variable breakpoints with the Windows PowerShell debugger. Hello Windows PowerShell scripting dudes and dudettes! Debugging Week continues, and today I am talking about using variable breakpoints with the Windows PowerShell debugger. Setting a breakpoint on line 1 of the script is useful for easily entering a…


Use PowerShell Strict Mode for Debugging

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using strict mode in Windows PowerShell for debugging purposes. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is that it can take being ignored or being used carelessly and sloppily, and it still seems to work fine. I mean, in…


More PowerShell Script Tracing and Strict Mode

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 therefore their values…


Tracing the Execution of a PowerShell Script

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,…


Weekend Scripter: Debug, Boss…Debug

Summary: Ed Wilson, Microsoft Scripting Guy, talks about debugging Windows PowerShell scripts. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about central Florida is there are lots of farmers markets… especially (I am told) this time of the year. This is great, because I prefer organically grown, locally sourced food. I…


Weekend Scripter: A Hidden Gem in the PowerShell Ocean: Get-PSCallStack

Summary: Microsoft PowerShell MVP, Jeff Wouters, talks about using the Get-PSCallStack Windows PowerShell cmdlet. Microsoft Scripting Guy, Ed Wilson, is here. Today Windows PowerShell MVP, Jeff Wouters, is back with another guest blog post. To read more of Jeff's previous guest posts, see these Hey, Scripting Guy! Blog posts. And now, Jeff… I once tweeted…


PowerTip: Debug Script on Remote Computer

Summary: Use Windows PowerShell to debug a script on a remote computer.   How can I use Windows PowerShell to debug a script on a remote computer?  Use the debugging features in the Windows PowerShell 4.0 console: 1. Use Enter-PSSession to start an interactive session on the remote computer: PS C: > Enter-PSSession -ComputerName Server01 2. Debug…


Remote Script Debugging in Windows PowerShell

Summary: Learn about remote debugging support in Windows PowerShell 4.0. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blog written by Paul Higinbotham who is a software design engineer on the Windows PowerShell team… Windows PowerShell 4.0 includes two major enhancements to the script debugger: script debugging now works in remote sessions, and…


Exploring the PowerShell PSDiagnostics Module

Summary: Microsoft Scripting Guy, Ed Wilson, talks about exploring the Windows PowerShell PSDiagnostics module. Microsoft Scripting Guy, Ed Wilson, is here. Let’s see, so today is November 23, 2012, which means that the Scripting Wife and I are in The Netherlands, and today, we are at the day-long Dutch PowerShell Group meeting. We get to…