Condividi tramite


Proprietà VCProjectConfigurationProperties.DebuggerType

Specifica le impostazioni del debugger per il codice gestito o non gestito. Se si specifica un tipo di debugger che non corrisponde al codice di cui sta eseguendo il debug, non è possibile avanzare in determinate sezioni di codice. Ad esempio, se si specifica il debugger gestito, non è possibile avanzare nel codice non gestito.

Spazio dei nomi:  Microsoft.VisualStudio.VCProject
Assembly:  Microsoft.VisualStudio.VCProject (in Microsoft.VisualStudio.VCProject.dll)

Sintassi

'Dichiarazione
Property DebuggerType As TypeOfDebugger
TypeOfDebugger DebuggerType { get; set; }
property TypeOfDebugger DebuggerType {
    TypeOfDebugger get ();
    void set (TypeOfDebugger value);
}
abstract DebuggerType : TypeOfDebugger with get, set
function get DebuggerType () : TypeOfDebugger 
function set DebuggerType (value : TypeOfDebugger)

Valore proprietà

Tipo: Microsoft.VisualStudio.VCProject.TypeOfDebugger
Enumerazione TypeOfDebugger.

Note

Utilizzare l'enumerazione di TypeOfDebugger per modificare il valore di questa proprietà.

Per informazioni sulla compilazione e l'esecuzione dell'esempio, vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto.

Esempi

[Visual Basic]

Il seguente codice di esempio riportato di seguito la proprietà di DebuggerType nell'ambiente di sviluppo:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim mystring As String
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCDebugSettings
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.DebugSettings
        tool.DebuggerType = TypeOfDebugger.DbgMixed
    End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCProjectConfigurationProperties Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProject