VCProjectConfigurationProperties.RemoteCommand Eigenschaft

Definition

Wenn Attach ist false und das Remote Remote Debuggen angibt, wird die ausführbare Datei gestartet, wenn Sie den Debugger aufrufen. Wenn Attach ist true und das Remote Remote Debuggen angibt, gibt die- RemoteCommand Eigenschaft den Prozess an, an den der Debugprozess angefügt werden soll, wenn Sie den Debugger aufrufen.

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

Eigenschaftswert

String

Der Prozess, an den der Debugprozess angefügt werden soll.

Attribute

Beispiele

[Visual Basic]

Der folgende Beispielcode ändert die- RemoteCommand Eigenschaft in der Entwicklungsumgebung:

' 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.Remote = RemoteDebuggerType.DbgRemote  
        tool.RemoteCommand = "test.exe"  
    End Sub  
End Module  

Hinweise

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 .

Gilt für