---
title: Test with Trigger and Print
project: LessCode
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/lesscode/1-0/guides/test-with-trigger/
updated: 2026-11-19T04:41:12.685Z
---

# Test with Trigger and Print

> Send test data into a flow by hand and look at what each node produces.

**Trigger** sends data when you select **Run**. **Print** shows the data it receives. Together they let you test part of a flow without waiting for a request or a timer.

## Send test data

1. Drag **Trigger** onto the canvas and connect its output to the node you want to test.
2. Double-click the Trigger to choose what it sends. Choose the **Type**, clear **Random data** and type your own **Data**. For an object, choose **Object** and type it in JavaScript form, for example `{ product: 'Demo product', quantity: 3 }`. Select **APPLY** in the window.
3. Select **APPLY** in the toolbar, then **Continue**.
4. Select **Run** on the Trigger.

## Look at the result

Connect a **Print** node to any output. Each time data arrives, Print shows the date and the data.

![Trigger connected to Print, which shows the received data](/files/Jap1Zr2MO61f.webp)

Select **Clear** on the Print node to empty it.

For a full example, see [Call an HTTP API](../../recipes/call-http-api/). To see log lines and errors, use the [Console](../console/).
