Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Disable-PSBreakpoint

Disable-PSBreakpoint - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Short description
Disables the breakpoints in the current console.

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

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 breakpoi
    nt 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 by using th
    e Set-PSBreakpoint cmdlet.
    A breakpoint is a point in a script where execution stops temporarily so that you can examine the instructions in t
    he script. Disable-PSBreakpoint is one of several cmdlets designed for debugging Windows PowerShell scripts. For mo
    re information about the Windows PowerShell debugger, see about_Debuggers.