OutputDebugString(Win32 API) 함수를 사용해 아래와 같이 디버깅 메시지를 출력할 수 있습니다.

 

디버깅 모드에서는 IDE의 Event log에 기록됩니다.

실행 모드(실행파일)에서는 DbgView 등의 유틸리티로 확인할 수 있습니다.

 - DbgView 다운로드 : https://technet.microsoft.com/en-us/sysinternals/debugview.aspx

 

dbgview_execution.png