menu
Is this helpful?

# デバッキング

SDKを実装する中でTEのDebug機能を利用してデバッキングすることが可能です。

TDLog::enable = true;
  1. Debug機能

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モードはデータ収集の質とAppの安定性に影響しますため、データ検証のみお使いください。