CmdID

CmdID / PowerShell / Cmdlets / Remove

Remove-PSBreakpoint

Deletes breakpoints from the current console. PowerShell reference

From the PowerShell reference 4 parameters Alias rbp

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

Deletes breakpoints from the current console. The Remove-PSBreakpoint cmdlet deletes a breakpoint. Enter a breakpoint object or a breakpoint ID. When you remove a breakpoint, the breakpoint object is no longer available or functional. If you have saved a breakpoint object in a variable, the reference still exists, but the breakpoint does not function. Remove-PSBreakpoint is one of several cmdlets designed for debugging PowerShell scripts. For more information about the PowerShell debugger, see about_Debuggers.

Remove-PSBreakpoint [-Breakpoint] <Breakpoint[]> [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-PSBreakpoint [-Id] <Int32[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Remove all breakpoints

Get-PSBreakpoint | Remove-PSBreakpointIdentify

Remove a specified breakpoint

$B = Set-PSBreakpoint -Script "sample.ps1" -Variable "Name" $B | Remove-PSBreakpointIdentify

Remove a breakpoint by ID

Remove-PSBreakpoint -Id 2Identify

Use a function to remove all breakpoints

function del-psb { Get-PSBreakpoint | Remove-PSBreakpoint }Identify

Its page in the reference: Remove-PSBreakpoint.

Parameters

4 in the PowerShell reference
-BreakpointSpecifies the breakpoints to delete. Enter a variable that contains breakpoint objects or a command that gets breakpoint objects, such as a Get-PSBreakpoint command. You can also pipe breakpoint objects to Remove-PSBreakpoint.
-IdSpecifies breakpoint IDs for which this cmdlet deletes breakpoints.
-ConfirmPrompts you for confirmation before running the cmdlet.
-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.