Try & Runs
Test functions with sample data, inspect variables, and review execution history.
Try & Runs
Use Try to test a function with sample data, inspect variables, and review each execution. This helps you catch missing inputs, broken conditions, and unexpected API responses before publishing.
Try a function
Open the function
Go to Functions and open the function you want to test.
Click Try
Click the Try button in the toolbar.
Set test inputs
Fill in sample data for the request body, path parameters, or query string - whatever your function expects.
Run and inspect
Run the function and inspect each step result. The run view shows outputs, variables, and errors.
Set breakpoints
Breakpoints pause execution at a specific step so you can inspect the variable state.
1. Hover over a step in the editor 2. Click the dot that appears on the left edge 3. A red dot confirms the breakpoint 4. Try the function - it pauses at the breakpoint
When paused, you can:
| Control | What it does | |---------------|--------------------------------------------------| | Continue | Run until the next breakpoint or the end | | Step Over | Execute just this step, then pause again | | Stop | Cancel the function run |
Inspect variables
The variable inspector shows every variable and its current value after each step. You can see:
- vars — Variables you set during the function run - input — The request body - params — Path parameters - query — Query string values
Objects and arrays can be expanded to drill into their contents.
Pro tip
Use step-by-step execution (click Step Over repeatedly) to walk through a function without setting breakpoints. The inspector updates after each step.
Troubleshooting tips
Variable is undefined? Check that the step assigning it actually runs. It might be inside an If/Else branch that was not taken.
Database query returns empty? Use the variable inspector to check your WHERE condition values. Then verify the data exists using the Data tab in the Database section.
API call fails? Inspect the URL, headers, and body in the variable inspector. Check that env variables like API keys are set correctly.
Execution history
Open Runs from the resource menu to review previous executions. Endpoint, task, trigger, and function runs can include:
- Duration, status (success/error), and timestamp - The full request and response data - Step-by-step execution logs - Analyze with AI — click to send an error directly to the AI Copilot for diagnosis
Create a Function /flows/creating-flows Build your function Variables & Data /flows/variables Understand the data available to your function Code View /flows/code-view Debug using the JavaScript view