Aracılığıyla paylaş


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

Breakpoint.LocationType

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:

  1. Bir kesme noktası hedef uygulamada ayarlayın.

  2. Çeşitli kesme noktası özellikleri iletişim kutusunda özellikleri/isabet sayısı ayarlayabilirsiniz.

  3. 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

Ayrıca bkz.

Başvuru

Breakpoint2 Arabirim

LocationType Fazla Yük

EnvDTE80 Ad Alanı

Diğer Kaynaklar

Nasıl Yapılır: derlemek ve otomasyon nesne modeli kod örnekleri çalıştırma