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
-Verboseswitch. In this post we’ll dive into its counterpart, the-Debugswitch and its companionWrite-Debugcmdlet.In covering
Write-Verbose, I mentioned verbose messages are typically targeted at the average user. The-Debugmessages 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.