How to Debug Maestro Business Rules

   MaestroThe UI design product.  |   Form Builder |  All versions This feature is related to all versions.

While you are developing business rules for a forms in Maestro, you may need to test or troubleshoot them. You can use Chrome developer tools with many useful plugins and extensions. One of them is a debugger allowing you to set breakpoints in your business rule’s JavaScript, or any JavaScript.

To open the Developer tools, click Ctrl +Shift+l and click the Console tab.

A quick way to trigger the debugger from inside your own rule code is to include the 'debugger;' statement in your code as you are developing it. When the statement is executed in a rule, the debugger is activated, so you can inspect the values of variables in the debugger or in the Console tab. Make sure to remove any debugger statements when you have finished debugging the rule.

For more information, see how to debug a Maestro form with Chrome DevTools.

Next, learn about Calculation Rules.