외규장각 도서 환수 모금 캠페인

Xcode 4.2 기준

1. DEBUG 추가
PROJECT > Build Settings > Apple LLVM compiler 3.0 - Preprocessing
Preprocessor Macros > Debug 에 DEBUG 입력

2. NSLog 출력 방식 변경
<프로젝트명>_Prefix.pch의 맨 밑에

#ifdef DEBUG
#define NSLog( s, ...) NSLog( @"<%p %@: (%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__. [NSString stringWithFormat:(s), ##__VA__ARGS__] )
#else
#define NSLog( s, ...)
#endif

3. 출력형태
파일명 라인번호 출력값
Posted by 닉네임영역
,


사랑합니다. 편안히 잠드소서