Condividi tramite


Proprietà VCDebugSettings.DebuggerType

Ottiene o imposta le opzioni del debugger per il codice gestito o non gestito.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.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.VCProjectEngine.TypeOfDebugger
Enumerazione TypeOfDebugger.

Note

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. Utilizzare l'enumerazione di TypeOfDebugger per modificare il valore di questa proprietà. Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Esempi

[Visual Basic]

Nell'esempio riportato di seguito la proprietà di DebuggerType nell'ambiente di sviluppo integrato (IDE):

' 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

VCDebugSettings Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine