Partager via


VCCLCompilerTool.DebugInformationFormat, propriété

Obtient ou définit le type d'informations de débogage générées par le compilateur. DebugInformationFormat expose les fonctionnalités des options /Z7, /Zi, /ZI (Format des informations de débogage) du compilateur.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
Property DebugInformationFormat As debugOption
debugOption DebugInformationFormat { get; set; }
property debugOption DebugInformationFormat {
    debugOption get ();
    void set (debugOption value);
}
abstract DebugInformationFormat : debugOption with get, set
function get DebugInformationFormat () : debugOption 
function set DebugInformationFormat (value : debugOption)

Valeur de propriété

Type : Microsoft.VisualStudio.VCProjectEngine.debugOption
Énumération debugOption.

Exemples

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour plus d'informations sur la compilation et l'exécution de cet exemple.

L'exemple suivant modifie la propriété d'DebugInformationFormat dans l'environnement de développement intégré (IDE) :

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

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.DebugInformationFormat = debugOption.debugEnabled
    End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCCLCompilerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms