Breakpoint2.LocationType Özellik
Kesme noktası gösteren konum türü alır.
Ad alanı: EnvDTE80
Derleme: EnvDTE80 (EnvDTE80.dll içinde)
Sözdizimi
'Bildirim
ReadOnly Property LocationType As dbgBreakpointLocationType
Get
dbgBreakpointLocationType LocationType { get; }
property dbgBreakpointLocationType LocationType {
dbgBreakpointLocationType get ();
}
abstract LocationType : dbgBreakpointLocationType
function get LocationType () : dbgBreakpointLocationType
Özellik Değeri
Tür: EnvDTE.dbgBreakpointLocationType
Birini dbgBreakpointLocationType değerler.
Yüklenen
Açıklamalar
Bir kesme noktası bir işlev, bir dosya, bir değişken veya belirli bellek adresi ayarlayabilirsiniz. Daha fazla bilgi için bkz. Breakpoints and Tracepoints.
Örnekler
Aşağıdaki örnek, nasıl kullanılacağını gösterir LocationType özelliği.
Bu özellik test etmek için:
Bir kesme noktası hedef uygulamada ayarlayın.
Çeşitli kesme noktası özellikleri iletişim kutusunda özellikleri/isabet sayısı ayarlayabilirsiniz.
Eklentiyi çalıştırın.
public static void LocationType(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("LocationType property: ");
owp.Activate();
// dte is a reference to the DTE2 object passed to you by the
// OnConnection method that you implement when you create an Add-in.
EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;
owp.OutputString("HitCountTarget: " +
debugger.Breakpoints.Item(1).HitCountTarget);
owp.OutputString("\nHitCountType: " +
debugger.Breakpoints.Item(1).HitCountType);
owp.OutputString("\nLocationType: " +
debugger.Breakpoints.Item(1).LocationType);
owp.OutputString("\nName: " + debugger.Breakpoints.Item(1).Name);
debugger.Breakpoints.Item(1).Tag = "My Breakpoint";
owp.OutputString("\nTag: " + debugger.Breakpoints.Item(1).Tag);
owp.OutputString("\nType: " + debugger.Breakpoints.Item(1).Type);
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. kısmen güvenilir kod tarafından Kitaplıklar kullanma.
Ayrıca bkz.
Başvuru
Diğer Kaynaklar
Nasıl Yapılır: derlemek ve otomasyon nesne modeli kod örnekleri çalıştırma