Skip to content

Instantly share code, notes, and snippets.

@virgilwashere
Created October 25, 2013 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virgilwashere/7157263 to your computer and use it in GitHub Desktop.
Save virgilwashere/7157263 to your computer and use it in GitHub Desktop.
break on exception
# 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