Whatfix enables you to debug issues with your Whatfix content and widgets using debugging commands in your browser’s Developer Tools.
Debugging articles
For information about debugging specific issues, see the following articles:
Common debugging commands
For information about common Whatfix debugging commands, see the following table:
Command | Description | When to use |
|---|---|---|
General commands | ||
___embed; | Checks if the Whatfix Embed script is injected on an application.
| When no Whatfix content is visible on your application. |
_wfx_settings.debug_mode=true; |
| When you want to debug issues with Whatfix content, for e.g.:
|
_wfx_refresh(); | Refreshes all the active content and widgets. |
|
_wfx_debug_finder(); | Prints the debug logs for all content and widgets loaded on the page. | When you want to debug issues with Whatfix content or widget segments, for e.g.: |
Flow commands | ||
_wfx_run(‘<flow_id>’); | Runs the Flow with the provided Flow ID. | When you want to run a Flow without triggering it using a widget. |
_wfx_is_live(); | Checks whether a Flow is currently running on the page.
| When a Flow is not visible or not loading on the desired pages. |
_wfx_play_state(); | Identifies the play state for a running Flow. Returns the Flow ID and step number of the Flow. | When additional information regarding the currently running flow is required like ID or the Step number. |
Smart Tip Commands | ||
_wfx_refresh_tips(); | Refreshes the Smart Tip segments active on the page. | When your Smart Tips are not behaving as expected. |