> For the complete documentation index, see [llms.txt](https://lamatic.ai/llms.txt).

# Testing Custom Code
You can test custom logic written in Code Nodes before running the entire flow.

![Debugging](./img/code.png)

## How to Test

- Open the Code Node in your flow
- Write or paste your logic
- Provide test inputs if required
- Click **Test** to execute the code and view results

The system will automatically:

- Show output of the code block
- Highlight errors or missing dependencies
- Optionally prompt to run prior nodes for input values

Use this to:

- Validate complex logic
- Debug syntax or runtime errors
- Iterate quickly without triggering full flow execution
