Last active
September 6, 2022 06:53
-
-
Save imtrinity94/a1ac6695a6cb96a54dba211ec9baad6b to your computer and use it in GitHub Desktop.
Quickly Set breakpoints on each and every line of PowerShell Script
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
$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