menu
Is this helpful?

# デバッキング

SDKを実装する中で、TEのDebug機能を利用して、デバッキングを行えます。

Debug機能は以下の2ステップで利用できます。

  1. DebugConsumerを使用
  • リソースファイルを入れる
/*
DebugConsumer: Data is reported item by item. When a problem occurs, the user will be prompted with logs and exceptions; it is not recommended to use it in an online environment
 */
TDAnalytics ta = new TDAnalytics(new DebugConsumer("receiveUrl", "appId", true, "deviceId"));
Dictionary<string, object> properties= new Dictionary<string, object>();
properties.Add("name", "test");

te.Track("accountId", "distinctId", "Payment", properties);
  1. TEシステム内でDebugデバイスを追加

Debugモードを本番環境でリリースしてしまうことを避けるため、特定のデバイスのみDebugモードが起動できます。

クライアントでDebugモードを起動し、デバイスIDをTEシステムの「データ管理」→「デバッグモード」で追加した上でDebugモードに起動できます。

Debugモードはデータ収集の質とAppの安定性に影響しますため、データ検証のみお使いください。