Robert Cain goes from verbose to debug mode:
In my previous post, Fun With PowerShell Write-Verbose, I introduced the use of the built in
-Verbose
switch. In this post we’ll dive into its counterpart, the-Debug
switch and its companionWrite-Debug
cmdlet.In covering
Write-Verbose
, I mentioned verbose messages are typically targeted at the average user. The-Debug
messages are meant to target the developer. These messages are meant to assist the PowerShell developer in trouble shooting and debugging their code.
Click through for examples of it in action.