PowerShell 2.0: One Cmdlet at a Time 62 Enable-PSBreakpoint
Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Enable-PSBreakpoint cmdlet.
What can I do with it?
Re-enable debugging breakpoints that have been disabled with Disable-PSBreakpoint.
Example:
Re-enable breakpoint with ID 0 and then check its properties to confirm it has been enabled.
Enable-PSBreakpoint -id 0 Get-PSBreakpoint -id 0 | Format-List *
You will notice that the Enabled property is set to True.
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.