Remove Method

Home Page (Objects)OverviewFAQReference

Applies to: Breakpoint object

Removes a breakpoint from the Breakpoints collection.

Syntax

object.Remove

Parameters

object

An expression that evaluates to a Breakpoint object.

Example

The following example iterates through the Breakpoints collection and displays the details about each breakpoint before removing it:

Dim bp
for each bp in Debugger.Breakpoints
   PrintToOutputWindow(bp.Location)
   PrintToOutputWindow(bp.File)
   PrintToOutputWindow(bp.Function)
   PrintToOutputWindow(bp.Executable)
   PrintToOutputWindow(bp.Condition)
   PrintToOutputWindow(bp.Enabled)
   PrintToOutputWindow(bp.PassCount)
   PrintToOutputWindow(bp.Message)
   PrintToOutputWindow(bp.WindowProcedure)
   PrintToOutputWindow(bp.Type)
   bp.Remove
next