CmdID

CmdID / PowerShell / Cmdlets / Disable

Disable-PSBreakpoint

Disables the breakpoints in the current console. PowerShell reference

From the PowerShell reference 5 parameters Alias dbp

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

Disables the breakpoints in the current console. The Disable-PSBreakpoint cmdlet disables breakpoints, which assures that they are not hit when the script runs. You can use it to disable all breakpoints, or you can specify breakpoints by submitting breakpoint objects or breakpoint IDs. Technically, this cmdlet changes the value of the Enabled property of a breakpoint object to False. To re-enable a breakpoint, use the Enable-PSBreakpoint cmdlet. Breakpoints are enabled by default when you create them using the Set-PSBreakpoint cmdlet. A breakpoint is a point in a script where execution stops temporarily so that you can examine the instructions in the script. Disable-PSBreakpoint is one of several cmdlets designed for debugging PowerShell scripts. For more information about the PowerShell debugger, see about_Debuggers.

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

Set a breakpoint and disable it

$B = Set-PSBreakpoint -Script "sample.ps1" -Variable "name" $B | Disable-PSBreakpointIdentify

Disable a breakpoint

Disable-PSBreakpoint -Id 0Identify

Create a disabled breakpoint

Disable-PSBreakpoint -Breakpoint ($B = Set-PSBreakpoint -Script "sample.ps1" -Line 5)Identify

Disable all breakpoints in the current console

Get-PSBreakpoint | Disable-PSBreakpointIdentify

Its page in the reference: Disable-PSBreakpoint.

Parameters

5 in the PowerShell reference
-BreakpointSpecifies the breakpoints to disable. 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 the Disable-PSBreakpoint cmdlet.
-IdDisables the breakpoints with the specified breakpoint IDs. Enter the IDs or a variable that contains the IDs. You cannot pipe IDs to Disable-PSBreakpoint.
-PassThruReturns an object representing the enabled breakpoints. By default, this cmdlet does not generate any output.
-ConfirmPrompts you for confirmation before running the cmdlet.
-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.