Share via


Breakpoint2.FunctionLineOffset Property

Definition

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

public:
 property int FunctionLineOffset { int get(); };
public:
 property int FunctionLineOffset { int get(); };
[System.Runtime.InteropServices.DispId(103)]
public int FunctionLineOffset { [System.Runtime.InteropServices.DispId(103)] get; }
[<System.Runtime.InteropServices.DispId(103)>]
[<get: System.Runtime.InteropServices.DispId(103)>]
member this.FunctionLineOffset : int
Public ReadOnly Property FunctionLineOffset As Integer

Property Value

An integer containing the line offset from the name of a function breakpoint.

Implements

Attributes

Examples

The following example demonstrates how to use the FunctionLineOffset property.

public static void FunctionLineOffset (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("FunctionLineOffset property: ");  
    owp.Activate();  

    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;  
    owp.OutputString("\n FunctionColumnOffset: " +  
                     debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString());  
    owp.OutputString("\n FunctionLineOffset: " +  
                     debugger.Breakpoints.Item(1).FunctionLineOffset.ToString());  
}  

Remarks

See File, New Breakpoint dialog box for more information.

Applies to