Partager via


VCLinkerTool.GenerateDebugInformation, propriété

Obtient ou définit une valeur activant la génération d'informations de débogage.

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

Syntaxe

'Déclaration
Property GenerateDebugInformation As Boolean
bool GenerateDebugInformation { get; set; }
property bool GenerateDebugInformation {
    bool get ();
    void set (bool value);
}
abstract GenerateDebugInformation : bool with get, set
function get GenerateDebugInformation () : boolean 
function set GenerateDebugInformation (value : boolean)

Valeur de propriété

Type : Boolean
true si des informations de débogage sont générées ; sinon, false.

Notes

GenerateDebugInformation expose les fonctions de l'option /DEBUG (Générer les informations de débogage) de l'éditeur de liens.

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.

Exemples

L'exemple suivant modifie la propriété d'GenerateDebugInformation 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 VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.GenerateDebugInformation = False
  End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCLinkerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms