Enabled Property
Home Page (Objects) | Overview | FAQ | Reference
Applies to: Breakpoint object
Gets or sets whether a breakpoint is enabled.
Syntax
object**.Enabled** [=status]
Parameters
object
An expression that evaluates to a Breakpoint object.
status
A Boolean that enables or disables the breakpoint. Possible values are:
True Enables the breakpoint.
False Disables the breakpoint.
Remarks
The Enabled property has the Boolean type.
You cannot enable a breakpoint if it is invalid.
Example
The following example enables the first breakpoint in the Breakpoints collection:
Dim bps
Set bps = Debugger.Breakpoints
bps.Item(1).Enabled = True