Breakpoint2 Breakpoint2 Breakpoint2 Breakpoint2 Breakpoint2 Breakpoint2 Interface

Definition

Contains the properties and methods used to programmatically manipulate a breakpoint.

public interface class Breakpoint2 : EnvDTE::Breakpoint
public interface class Breakpoint2 : EnvDTE::Breakpoint
__interface Breakpoint2 : EnvDTE::Breakpoint
[System.Runtime.InteropServices.Guid("FBC8D85A-E449-4CB3-B026-F7808DEB7792")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface Breakpoint2 : EnvDTE.Breakpoint
type Breakpoint2 = interface
    interface Breakpoint
Public Interface Breakpoint2
Implements Breakpoint
Derived
Attributes
Implements

Examples

The following example demonstrates how to use the Children property on the Breakpoint2 object.

public static void Children(EnvDTE80.DTE2 dte)  
{  
    // Setup debug Output window.  
    Window w =   
(Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);  
    w.Visible = true;  
    OutputWindow ow = (OutputWindow)w.Object;  
    OutputWindowPane owp = ow.OutputWindowPanes.Add("Children Property   
Test");  
    owp.Activate();  

    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;  
    owp.OutputString("Number of children: " +   
debugger.Breakpoints.Item(1).Children.Count.ToString());  
}  

Properties

BreakWhenHit BreakWhenHit BreakWhenHit BreakWhenHit BreakWhenHit BreakWhenHit

Gets or sets a value indicating whether the program breaks when a breakpoint is encountered.

Children Children Children Children Children Children

Gets a collection of all Breakpoint2 child objects.

Collection Collection Collection Collection Collection Collection

Gets the collection containing all of the Breakpoint2 objects.

Condition Condition Condition Condition Condition Condition

Gets the condition that triggers a breakpoint.

ConditionType ConditionType ConditionType ConditionType ConditionType ConditionType

Gets the condition type of the breakpoint, which can be either break when true, or break when changed.

CurrentHits CurrentHits CurrentHits CurrentHits CurrentHits CurrentHits

Gets the number of times this breakpoint has been hit during this debugging session.

DTE DTE DTE DTE DTE DTE

Gets the top-level extensibility object.

Enabled Enabled Enabled Enabled Enabled Enabled

Sets or returns the enabled state of the breakpoint.

File File File File File File

Gets the name of the file in which the breakpoint is contained.

FileColumn FileColumn FileColumn FileColumn FileColumn FileColumn

Gets the character location within a line in a file where the breakpoint is set.

FileLine FileLine FileLine FileLine FileLine FileLine

Gets the line within a file where the breakpoint is set.

FilterBy FilterBy FilterBy FilterBy FilterBy FilterBy

Gets or sets a condition at which a breakpoint is set.

FunctionColumnOffset FunctionColumnOffset FunctionColumnOffset FunctionColumnOffset FunctionColumnOffset FunctionColumnOffset

Gets the column offset from the name of a function breakpoint.

FunctionLineOffset FunctionLineOffset FunctionLineOffset FunctionLineOffset FunctionLineOffset FunctionLineOffset

Gets the line offset from the name of a function breakpoint.

FunctionName FunctionName FunctionName FunctionName FunctionName FunctionName

Gets the name of the function containing the breakpoint.

HitCountTarget HitCountTarget HitCountTarget HitCountTarget HitCountTarget HitCountTarget

Gets the hit count target for any type of breakpoint. It is interpreted based on the hit count type.

HitCountType HitCountType HitCountType HitCountType HitCountType HitCountType

Gets the hit count type, which describes how to interpret a hit count.

Language Language Language Language Language Language

Gets the name of the programming language containing the breakpoint.

LocationType LocationType LocationType LocationType LocationType LocationType

Gets the location type the breakpoint represents.

Macro Macro Macro Macro Macro Macro

Gets or sets a breakpoint macro.

Message Message Message Message Message Message

Gets or sets a breakpoint message.

Name Name Name Name Name Name

Sets or returns the name of the breakpoint.

Parent Parent Parent Parent Parent Parent

Gets the immediate parent object of the breakpoint.

Process Process Process Process Process Process

Gets the Process2 associated with the current breakpoint.

Program Program Program Program Program Program

Gets the executable being managed by this process.

Tag Tag Tag Tag Tag Tag

Sets or gets a user-defined string identifying this breakpoint.

Type Type Type Type Type Type

Gets a constant specifying the type of breakpoint.

Methods

Delete() Delete() Delete() Delete() Delete() Delete()

Deletes the breakpoint.

ResetHitCount() ResetHitCount() ResetHitCount() ResetHitCount() ResetHitCount() ResetHitCount()

Resets the breakpoint hit count.

Applies to