# デバッキング
SDKを実装する中でTEのDebug機能を利用してデバッキングすることが可能です。
ThinkingData::set_enable_log(true)
- Debug機能
TEのDebug機能を利用して、デバッキングを行えます。
以下はDebugConsumerのコード例:
consumer = ThinkingData::TDDebugConsumer.new('SERVER_URL', 'APPID', device_id: "123456789")
te = ThinkingData::TDAnalytics.new(consumer)
DEMO_ACCOUNT_ID = '123'
DEMO_DISTINCT_ID = 'aaa'
properties = {
array: ["str1", "11", Time.now, "2020-02-11 17:02:52.415"],
prop_date: Time.now,
prop_double: 134.1,
prop_string: 'hello world',
prop_bool: true,
}
ta.track(event_name: 'test_event', distinct_id: DEMO_DISTINCT_ID, account_id: DEMO_ACCOUNT_ID, properties: properties)
Debugモードはデータ収集の質とAppの安定性に影響しますため、データ検証のみお使いください。
← リリース履歴 プリセットプロパティ →