Debugging Tools
Test the tool with sample parameters to ensure it works correctly. Use the debugger window to troubleshoot your tool, and investigate step outputs and errors in the logic.
Start the execution by either pressing the Play button at the bottom of the page, pressing Run from here (to execute the tool from this step), or Run this step (to execute only the current step) from the 3-dots menu.
Make sure to fill in all the required parameters before the execution starts. You will have to provide correct values in the expected format so that you can start the execution. Press Autofill Parameters to have the values completed by AI based on their descriptions. If the Run & Debug button is disabled, it means that one of the required parameters is not filled in or the value does not respect the expected format
Functionality:
the debugger will execute each step one by one moving the focus automatically to the next step
if it encounters an error, it will stop the execution
when the execution is stopped, you can navigate between steps and investigate the Current State and the Step Output
Current State: Here you will view the value of each variable at the current step. To move the execution up or down use the arrow buttons. You will notice how the current state changes based on the selected step. For a better understanding of variables, refer to Parameters, variables, context and data flow
Step Output: Here you can have an isolated view of the output of the step. We also show the execution errors here to give you more information on troubleshooting the top
Use the Restart button to restart the execution of the tool using the same state (you don't have to fill in the parameters again)
If you want to start fresh, press the Stop button at the bottom of the page and Play again
You can modify the Current State making sure it remains a valid JSON. Once done, you can restart the execution.
Notes:
Parallel executions are not possible in the Debugger, it will always run the first branch, and not all of them
In the Current State, you can only see the value of the Input Parameters and the defined Step outputs, but not the Global Context
When executing a User Interaction step you will be prompted to select one of the quick options or insert a free value.
Manually opening a step won't change the debugger focus, you have to do that by using the arrow buttons
We will try our best to fit both the Debugger and the Steps on the screen, but you can also collapse the debugger to get some extra space for updating the steps
When you are debugging a tool and you want to modify a step content, make sure to close the step so that the debugger refreshes its attributes before a re-execution
Debugger will try to follow any steps you add or remove, and the parameter changes. If you notice that any of these are not updated in the debugger window, restart the execution