Skip to content

Instantly share code, notes, and snippets.

@imtrinity94
Last active September 6, 2022 06:53
Show Gist options
  • Save imtrinity94/a1ac6695a6cb96a54dba211ec9baad6b to your computer and use it in GitHub Desktop.
Save imtrinity94/a1ac6695a6cb96a54dba211ec9baad6b to your computer and use it in GitHub Desktop.
Quickly Set breakpoints on each and every line of PowerShell Script
$scriptPath = "C:\Users\medium\Downloads\vRODoc.ps1"
$lineCount = (Get-Content $scriptPath).Length
for($i = 1; $i -le $lineCount; $i++){
Set-PSBreakpoint -Script $scriptPath -Line $i
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment