Difference between revisions of "ATC/Current/SDK/debug"
From Genesys Documentation
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
(Published) |
||
Line 6: | Line 6: | ||
|Dimension=UtilityMethods | |Dimension=UtilityMethods | ||
|ComingSoon=No | |ComingSoon=No | ||
− | |Platform=GenesysEngage-cloud | + | |Platform=PureConnect, GenesysCloud, GenesysEngage-cloud |
− | |||
|Section={{Section | |Section={{Section | ||
|sectionHeading=debug | |sectionHeading=debug | ||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=To turn on debug mode, invoke the <tt>debug</tt> method. This mode logs helpful messages to the console. | |structuredtext=To turn on debug mode, invoke the <tt>debug</tt> method. This mode logs helpful messages to the console. | ||
− | This example shows how to enable debug mode | + | This example shows how to enable debug mode: |
<source lang="javascript"> | <source lang="javascript"> | ||
ac('debug'); | ac('debug'); | ||
Line 22: | Line 18: | ||
− | This example shows how to disable debug mode | + | This example shows how to disable debug mode: |
<source lang="javascript"> | <source lang="javascript"> | ||
ac('debug', false); | ac('debug', false); | ||
</source> | </source> | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 19:07, December 16, 2020
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Contents
Learn how to send helpful messages to the console when you are troubleshooting tracking behavior.
debug
To turn on debug mode, invoke the debug method. This mode logs helpful messages to the console.
This example shows how to enable debug mode:
ac('debug');
This example shows how to disable debug mode:
ac('debug', false);
Comments or questions about this documentation? Contact us for support!