Last active
August 29, 2015 13:58
-
-
Save usepowershell/10274011 to your computer and use it in GitHub Desktop.
Set Tracing Conditionally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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