Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/debugging

# Debugging

Whatfix enables you to debug issues with your Whatfix content and widgets using debugging commands in your browser’s [**Developer Tools**](https://developer.chrome.com/docs/devtools).

## Debugging articles

For information about debugging specific issues, see the following articles:

- [Identify an element’s CSS selector](/web/identify-an-elements-css-selector)
- [Debug Pop-up issues](/web/debug-pop-up-issues)
- [Get tags loaded on a page](/web/get-tags-loaded-on-a-page)
- [Debug a Flow failure](/web/debug-a-flow-failure)

## 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. - Returns **True** if the Whatfix Embed script is present. - Returns **False** if the Whatfix Embed script is **not** present. | When no Whatfix content is visible on your application.                                                                                                                                                                                                                              |
| **_\_wfx_\_\*\*\*\*settings.debug\_mode=true;** | - Enables Whatfix debug mode. - Shows real-time logs of Whatfix content on the console.                                                                                                          | When you want to debug issues with Whatfix content, for e.g.: - [Debug a Flow failure](/web/debug-a-flow-failure) - [Get tags loaded on a page](/web/get-tags-loaded-on-a-page) > \[!WARNING] > Note > > After using this command, ensure to use the **\__wfx_\_refresh();** command |
| **_\_wfx_\_refresh();**                         | Refreshes all the active content and widgets.                                                                                                                                                    | - When Whatfix content is not behaving as expected - After changing a **\__wfx_\_settings** variable value, for e.g. **\__wfx_\_settings.debug\_mode**                                                                                                                               |
| **__wfx__&#x64;ebug\_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.: - [Debug Pop-up issues](/web/debug-pop-up-issues)                                                                                                                                                   |
| **Flow commands**                               |                                                                                                                                                                                                  |                                                                                                                                                                                                                                                                                      |
| **__wfx__&#x72;un(‘\<flow\_id>’);**             | Runs the Flow with the provided Flow ID.                                                                                                                                                         | When you want to run a Flow without triggering it using a widget.                                                                                                                                                                                                                    |
| **__wfx__&#x69;s\_live();**                     | Checks whether a Flow is currently running on the page. - Returns **True** if there is a running Flow - Returns **False** if there are no Flows currently running.                               | When a Flow is not visible or not loading on the desired pages.                                                                                                                                                                                                                      |
| **__wfx__&#x70;lay\_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__&#x72;efresh\_tips();**                | Refreshes the Smart Tip segments active on the page.                                                                                                                                             | When your Smart Tips are not behaving as expected.                                                                                                                                                                                                                                   |
