Breakpoint.FunctionLineOffset Property
Indicates the line offset from the name of a function breakpoint.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property FunctionLineOffset As Integer
int FunctionLineOffset { get; }
property int FunctionLineOffset {
int get ();
}
abstract FunctionLineOffset : int
function get FunctionLineOffset () : int
Property Value
Type: System.Int32
An integer value representing the line offset from the name of a function breakpoint.
Remarks
Depending on engine, this may not function properly in native language.
Examples
The following example demonstrates how to use the FunctionLineOffset property.
To test this property:
Set a breakpoint in the target application.
Run the add-in.
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();
// dte is a reference to the DTE object passed to you by the
// OnConnection method that you implement when you create an add-in.
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.