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 si 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
In TypeOfDebugger enumerazione.

Note

utilizzare TypeOfDebugger enumerazione 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]

il seguente codice di esempio modifica DebuggerType proprietà 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