PowerShell 2.0: One Cmdlet at a Time 63 Remove-PSBreakpoint
Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Remove-PSBreakpoint cmdlet.
What can I do with it?
Remove debugging breakpoints that have been set with Set-PSBreakpoint.
Examples:
Check existing breakpoints and remove the breakpoint with ID 0.
Get-PSBreakpoint Remove-PSBreakpoint -Id 0
Confirmation that breakpoint with ID 0 has been removed.
Check existing breakpoints and remove all of them.
Get-PSBreakpoint Get-PSBreakpoint | Remove-PSBreakpoint
How could I have done this in PowerShell 1.0?
Setting breakpoints did not exist in PowerShell 1.0, however most scripting IDE’s ship with debugging features.