Skip to content

Instantly share code, notes, and snippets.

@smurawski
Last active August 29, 2015 13:58
Show Gist options
  • Save smurawski/10274011 to your computer and use it in GitHub Desktop.
Save smurawski/10274011 to your computer and use it in GitHub Desktop.
Set Tracing Conditionally
<#
This Gist was created by ISEGist
04/09/2014 09:00:55
#>
$Scriptfile = 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1'
Set-PSBreakpoint -Line 249 -Script $Scriptfile -Action {set-psdebug -trace 1;}
Set-PSBreakpoint -Line 477 -Script $Scriptfile -Action {set-psdebug -off;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment