Created
October 25, 2013 16:12
-
-
Save virgilwashere/7157263 to your computer and use it in GitHub Desktop.
break on exception
This file contains 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
# You can add this line in your profile instead of here... Set-PSBreakpoint -Variable BreakOnException -Mode ReadWriteWrite-Host "Enter"# then just add this where you want to enable breaking on exceptionstrap { $BreakOnException; continue }Write-Host "Starting"throw "stones"Write-Host "Ending" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment