# 디버깅
SDK를 구현하는 과정에서 TE의 Debug 기능을 사용하여 디버깅할 수 있습니다.
TDLog::enable = true;
- 디버그 기능
TE의 Debug 기능을 이용하여 디버깅을 수행할 수 있습니다.
다음은 DebugConsumer의 코드 예시입니다:
string deviceId = "123456789";
TDDebugConsumer debugConsumer("appId", "serverUrl", "", deviceId);
TDAnalytics te(debugConsumer);
TDPropertiesNode event_properties;
event_properties.SetString("name", "value");
// track
te.track(accountId, distincId, eventName, event_properties);
Debug 모드는 데이터 수집의 질과 앱의 안정성에 영향을 미칩니다. 따라서 데이터 검증을 위해서만 사용해 주세요.