1. #if  #endif 사용하기

#if DEBUG 
    // 코드 입력 

#endif

 

2. Sytem.Diagnostics Namespace 사용하기

if (Debugger.IsAttached)
{ 
    // 코드 입력

 }

 

+ Recent posts