VCCLCompilerTool.DebugInformationFormat Eigenschaft

Definition

Übernimmt oder bestimmt die Art der vom Compiler generierten Debuginformationen. DebugInformationFormat macht die Funktionalität der Optionen /Z7,/Zi,/Zi (Debug Information Format) des Compilers verfügbar.

public:
 property Microsoft::VisualStudio::VCProjectEngine::debugOption DebugInformationFormat { Microsoft::VisualStudio::VCProjectEngine::debugOption get(); void set(Microsoft::VisualStudio::VCProjectEngine::debugOption value); };
public:
 property Microsoft::VisualStudio::VCProjectEngine::debugOption DebugInformationFormat { Microsoft::VisualStudio::VCProjectEngine::debugOption get(); void set(Microsoft::VisualStudio::VCProjectEngine::debugOption value); };
[System.Runtime.InteropServices.DispId(12)]
public Microsoft.VisualStudio.VCProjectEngine.debugOption DebugInformationFormat { [System.Runtime.InteropServices.DispId(12)] get; [System.Runtime.InteropServices.DispId(12)] set; }
[<System.Runtime.InteropServices.DispId(12)>]
[<get: System.Runtime.InteropServices.DispId(12)>]
[<set: System.Runtime.InteropServices.DispId(12)>]
member this.DebugInformationFormat : Microsoft.VisualStudio.VCProjectEngine.debugOption with get, set
Public Property DebugInformationFormat As debugOption

Eigenschaftswert

debugOption

Eine debugOption-Enumeration.

Attribute

Beispiele

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispiel Code für die Erweiterbarkeit von Projekt Modellen .

Im folgenden Beispiel wird die- DebugInformationFormat Eigenschaft in der integrierten Entwicklungsumgebung (Integrated Development Environment, IDE) geändert:

' 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  

Gilt für