Compartir a través de


VCDebugSettings.RemoteCommand (Propiedad)

Si Attach es false y Remote especifica la depuración remota, el archivo ejecutable se inicia al invocar el depurador.Si Attach es true y Remote especifica la depuración remota, la propiedad RemoteCommand especifica el proceso al que se debe asociar el proceso de depuración al invocar el depurador.

Espacio de nombres:  Microsoft.VisualStudio.VCProjectEngine
Ensamblado:  Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxis

'Declaración
Property RemoteCommand As String
string RemoteCommand { get; set; }
property String^ RemoteCommand {
    String^ get ();
    void set (String^ value);
}
abstract RemoteCommand : string with get, set
function get RemoteCommand () : String
function set RemoteCommand (value : String)

Valor de propiedad

Tipo: System.String
Proceso al que debe asociarse el proceso de depuración al invocar el depurador.

Comentarios

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.

Ejemplos

El ejemplo siguiente se modifica la propiedad de RemoteCommand en el entorno de desarrollo (IDE) integrado:

' 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

Seguridad de .NET Framework

Vea también

Referencia

VCDebugSettings Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)