Breakpoint2 Interface

 

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

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

[GuidAttribute("FBC8D85A-E449-4CB3-B026-F7808DEB7792")]
public interface Breakpoint2 : Breakpoint

NameDescription
System_CAPS_pubpropertyBreakWhenHit

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

System_CAPS_pubpropertyChildren

Gets a collection of all Breakpoint2 child objects.

System_CAPS_pubpropertyCollection

Gets the collection containing all of the Breakpoint2 objects.

System_CAPS_pubpropertyCondition

Gets the condition that triggers a breakpoint.

System_CAPS_pubpropertyConditionType

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

System_CAPS_pubpropertyCurrentHits

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

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyEnabled

Sets or returns the enabled state of the breakpoint.

System_CAPS_pubpropertyFile

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

System_CAPS_pubpropertyFileColumn

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

System_CAPS_pubpropertyFileLine

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

System_CAPS_pubpropertyFilterBy

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

System_CAPS_pubpropertyFunctionColumnOffset

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

System_CAPS_pubpropertyFunctionLineOffset

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

System_CAPS_pubpropertyFunctionName

Gets the name of the function containing the breakpoint.

System_CAPS_pubpropertyHitCountTarget

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

System_CAPS_pubpropertyHitCountType

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

System_CAPS_pubpropertyLanguage

Gets the name of the programming language containing the breakpoint.

System_CAPS_pubpropertyLocationType

Gets the location type the breakpoint represents.

System_CAPS_pubpropertyMacro

Gets or sets a breakpoint macro.

System_CAPS_pubpropertyMessage

Gets or sets a breakpoint message.

System_CAPS_pubpropertyName

Sets or returns the name of the breakpoint.

System_CAPS_pubpropertyParent

Gets the immediate parent object of the breakpoint.

System_CAPS_pubpropertyProcess

Gets the Process2 associated with the current breakpoint.

System_CAPS_pubpropertyProgram

Gets the executable being managed by this process.

System_CAPS_pubpropertyTag

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

System_CAPS_pubpropertyType

Gets a constant specifying the type of breakpoint.

NameDescription
System_CAPS_pubmethodDelete()

Deletes the breakpoint.

System_CAPS_pubmethodResetHitCount()

Resets the breakpoint hit count.

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());
}
Return to top
Show: