Debugging PowerShell Code Guidance

If you get stuck with debugging your PowerShell scripts, there is some excellent guidance available on TechNet here.
The link to the 7 part series mentioned in the article no longer seems to work, but there is enough here to get you going. I’m particularly a fan of Write-Verbose, because it allows you to add trace code for what you expect to happen and what did actually happen. As is often the issue, the two don’t always align …

Advertisements


Categories: Powershell

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: