AddBreakpointAtLine Method

Home Page (Objects)OverviewFAQReference

Applies to: Breakpoints object

Adds an unconditional location breakpoint to a line.

Syntax

object**.AddBreakpointAtLine(** [line_number] )

Parameters

object

An expression that evaluates to a Breakpoints object.

line_number

(Optional) A Long representing the line to which you will add the breakpoint. The default is the current line in the active text document.

Return Values

The AddBreakpointAtLine method returns the Breakpoint object representing the breakpoint added:

Example

The following example adds a breakpoint at line 10:

Dim bps
Set bps = Debugger.Breakpoints
bps.AddBreakpointAtLine(10)