7. Tips/Visual Studio

Remote Debugging 설정

SSKK 2013. 9. 26. 05:03

1. 디버깅 대상 PC 에 Microsoft Visual Studio Remote Debugger 설치


아래 링크는 2010 버전


http://www.microsoft.com/ko-kr/download/details.aspx?id=475


2. 방화벽 확인


Ports 

Protocol 

 

 135

 TCP 

 Required 

 500, 4500

 UDP

 Required if your domain policy requires network communication to be performed through IPSec


3. 디버깅 대상 PC 에서 아래 명령으로 실행


runas /user:youruserid /netonly msvsmon.exe


- msvsmon 위치 예


  C:\Program Files\Microsoft Visual Studio 20.0\Common7\IDE\Remote Debubbger\x64

  C:\Program Files\Microsoft Visual Studio 20.0\Common7\IDE\Remote Debubbger\x32


- 동일한 도메인이 아닌 경우


youruserid 의 계정이 디버깅 대상 PC 와 디버깅 PC 에 동일한 id 와 password 로 된 계정이 존재해야 함.


4. msvsmon > Tools > permissions


add user "youruserid"


(msvsmon 실행할 때 마다 해 줌)


5. 연결 정보 확인




6. Visual Studio > Debug > Attach to process


Transport : Default

Qualifier : 5번에 나오는 Server name



프로세스 목록 나오면 성공.


Remote Debuggin Across Domains 도 해보면 좋을 듯 

(http://msdn.microsoft.com/en-us/library/9y5b4b4f(v=vs.100).aspx)


참고: http://stackoverflow.com/questions/396101/remote-debugging-in-visual-studio-vs2008-windows-forms-application

 및 여기저기