Breakpoint.FunctionLineOffset Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Указывает на смещение строки от имени точки останова в функции.
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
Значение свойства
Целое значение, представляющее смещение строки от имени точки останова в функции.
- Атрибуты
Примеры
В следующем примере показано, как использовать FunctionLineOffset свойство.
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
Комментарии
В зависимости от обработчика это может работать неправильно на родном языке.