Breakpoint.FunctionLineOffset Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the line offset from the name of a function breakpoint.
public:
property int FunctionLineOffset { int get(); };
C++/CX
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
An integer value representing the line offset from the name of a function breakpoint.
- Attributes
The following example demonstrates how to use the FunctionLineOffset property.
C#
public static void FunctionLineOffset(DTE 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 Test: ");
owp.Activate();
EnvDTE.Debugger debugger = (EnvDTE.Debugger)dte.Debugger;
owp.OutputString("\n FunctionColumnOffset: " +
debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString());
owp.OutputString("\n FunctionLineOffset: " +
debugger.Breakpoints.Item(1).FunctionLineOffset.ToString());
}
Shared Sub FunctionLineOffset(ByRef dte As EnvDTE.DTE)
MessageBox.Show("FunctionColumnOffset: " + _
dte.Debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString())
MessageBox.Show("FunctionLineOffset: " + _
dte.Debugger.Breakpoints.Item(1).FunctionLineOffset.ToString())
End Sub
Depending on engine, this may not function properly in native language.
Proizvod | Verzije |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |