2009/10/21 11:49

Windows Service Debugging



일반적으로 Visual Studio의 Process Attach를 이용해서 Windows Service를 디버깅하지요.

코드에 아래와 같이 디버그 모드 일 때 Debugger 선택 화면을 보도록 할 수 있습니다.
 

#if DEBUG

      System.Diagnostics.Debugger.Launch();

#endif 


위 코드를 OnStart() 메소드에 넣어주시면 될 것 같네요.


참~ 쉽죠잉~


자세한 내용은 아래 링크를 확인해보세요~

http://weblogs.asp.net/paulballard/archive/2005/07/12/419175.aspx

저작자 표시 비영리 변경 금지
이 장소를 Daum지도에서 확인해보세요.
서울특별시 마포구 상암동 | KBS미디어센터 한국해양수산개발원
도움말 Daum 지도
크리에이티브 커먼즈 라이선스
Creative Commons License

'.NET > C#' 카테고리의 다른 글

C# 'this' keyword - Extension Method  (0) 2011/02/25
Last.fm API and Facebook API for .NET  (0) 2010/11/01
Windows Service Debugging  (0) 2009/10/21
Unicode 한글 코드 표  (0) 2009/09/27
C# : Unit Class - File Size  (0) 2009/05/14
Memory usage of current thread on C# windows form app.  (0) 2009/04/23
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/527 관련글 쓰기