Test and Debug Scripts in CXone Studio

This help page is for CXone Studio. This information is also available for Desktop Studio.

Testing and debugging is an important step in the development of a script. There are several ways you can do this in Studio:

  • Test with Simulated Interactions: You can test scripts by simulating interactions in Studio. This allows you to see how the script performs in action, as well as to diagnose problems that need to be fixed. You can run traces on simulated interactions, which gives you insights into what's happening within the script.
  • Trace Scripts: Tracing scripts allows you to view what happens as a script runs. You can use it with live or simulated interactions. The Trace Output tool shows you the actions in a script and how the output changes as the script progresses. You can see the variables present in the script and the values they hold. You can also see the properties of an action, including how they're configured in the script you're tracing.
  • Debug Code in Snippets: The Snippet editor window hasa debugger that you can use to check the code you're working on. The Debugger window works like a mini-trace, allowing you to step through the code line by line. You can see each variable and the value it holds at that point in the code.