VCDebugSettings.Command Propriété

Définition

Si Remote spécifie le débogage local et si Attach a la valeur false, la propriété Command indique le fichier exécutable à démarrer lorsque vous appelez le débogueur. Si Attach a la valeur true et si Remote spécifie le débogage distant, la propriété Command indique le processus auquel le processus de débogage doit être attaché lorsque vous appelez le débogueur.

public:
 property System::String ^ Command { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ Command { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(2320)]
public string Command { [System.Runtime.InteropServices.DispId(2320)] get; [System.Runtime.InteropServices.DispId(2320)] set; }
[<System.Runtime.InteropServices.DispId(2320)>]
[<get: System.Runtime.InteropServices.DispId(2320)>]
[<set: System.Runtime.InteropServices.DispId(2320)>]
member this.Command : string with get, set
Public Property Command As String

Valeur de propriété

String

Fichier exécutable à démarrer lors de l'appel du débogueur ou processus auquel le processus de débogage doit être attaché.

Attributs

Exemples

L’exemple suivant modifie la Command propriété 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 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.Command = "test.exe"  
    End Sub  
End Module  

Remarques

Pour plus d’informations, consultez paramètres de projet pour une configuration de débogage C++ . Pour plus d’informations sur la compilation et l’exécution de cet exemple, consultez Comment : compiler l’exemple de code pour l’extensibilité du modèle de projet .

S’applique à