Breakpoint2::Children Property

 

Gets a collection of all Breakpoint2 child objects.

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

property Breakpoints^ Children {
	Breakpoints^ get();
}

Property Value

Type: EnvDTE::Breakpoints^

A Breakpoints collection.

If the breakpoint has no children, then Nothing is returned.

The children are created when a pending breakpoint that is set in the design mode is bound to the specific instance of your application in break or run mode.

The following example demonstrates how to use the Children property.

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: