다음을 통해 공유


VCDebugSettings.Command 속성

Remote에서 로컬 디버깅을 지정하고 Attach가 false인 경우, Command 속성은 사용자가 디버거를 호출할 때 시작할 실행 파일을 지정합니다. Attach가 true이고 Remote에서 원격 디버깅을 지정하는 경우, Command 속성은 사용자가 디버거를 호출할 때 디버그 프로세스에서 연결해야 하는 프로세스를 지정합니다.

네임스페이스:  Microsoft.VisualStudio.VCProjectEngine
어셈블리:  Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)

구문

‘선언
Property Command As String
string Command { get; set; }
property String^ Command {
    String^ get ();
    void set (String^ value);
}
abstract Command : string with get, set
function get Command () : String 
function set Command (value : String)

속성 값

형식: String
디버거 호출 시 시작할 실행 파일이거나, 디버그 프로세스에서 연결해야 하는 프로세스입니다.

설명

자세한 내용은 C++ 디버그 구성에 대한 프로젝트 설정를 참조하십시오. 이 샘플을 컴파일하고 실행하는 방법을 보려면 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일을 참조하십시오.

예제

다음 예제에서는 수정 된 Command 통합된 개발 환경 (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

.NET Framework 보안

참고 항목

참조

VCDebugSettings 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스