nœuds / builtin / core
Debug
Generate sample data, delay, or throw on demand
Ce contenu n’est pas encore disponible dans votre langue.
Generate sample data, add a short pause, or force an error while you build and test a workflow.
What it does
Section titled “What it does”Debug does one of three things, chosen with Mode:
- Generate emits predictable sample data in the Shape you pick. It ignores the incoming data.
- Delay waits Delay (ms) milliseconds, then passes the incoming data through unchanged.
- Throw fails on purpose with Error message.
It never touches the network, your credentials or your stored data.
When to use it
Section titled “When to use it”- Feed a node sample data so you can test it before connecting a real source.
- Check how a step copes with a long text or a deeply nested object.
- Slow a step down to watch the run, or space out two actions.
- Fail on purpose to test Try / Catch, retries or Continue On Fail.
For waits longer than a few seconds, or that must survive closing the tab, use Wait.
Inputs and settings
Section titled “Inputs and settings”| Réglage | Type | Ce que cela fait |
|---|---|---|
| Mode | Choice | What this node does when it runs. Options: Generate, Delay, Throw. Par défaut : Generate |
| Shape | Choice | Used by Generate: which sample data shape to emit. Options: Indexed items, Long string, Nested object, Random JSON. Par défaut : Indexed items |
| Count | Number | Used by Generate → Indexed items: how many items to emit. Par défaut : 5 |
| Length | Number | Used by Generate → Long string: the exact length of the string. Par défaut : 1000 |
| Depth | Number | Used by Generate → Nested object: how many levels deep to nest. Par défaut : 3 |
| Delay (ms) | Number | Used by Delay: how long to wait, in milliseconds. Par défaut : 1000 |
| Error message | Long text | Used by Throw: the error message to raise. Par défaut : Debug node threw on demand |
Each Generate setting applies to one shape only: Count to Indexed items (default 5), Length to Long string (default 1000), Depth to Nested object (default 3). The others are ignored. Error message defaults to “Debug node threw on demand”.
Outputs
Section titled “Outputs”-
Output
- Generate, by shape:
- Indexed items: Count items, each
{ index, id }, withindexfrom0andidlikeitem-0. - Long string: one item
{ value }whose text is exactly Length characters. - Nested object: one item nested Depth levels deep,
{ level: 1, child: { level: 2, ... } }; the deepest level hasleaf: true. - Random JSON: one item
{ id, name, active, score, tags }with random values (number, text, true/false, number, list of text).
- Indexed items: Count items, each
- Delay: the incoming data, unchanged (an empty item if nothing came in).
- Throw: no output; the node fails.
Dependencies and credentials
Section titled “Dependencies and credentials”None. This node needs no connection and has no slots for other nodes.
Example workflow
Section titled “Example workflow”Test an error branch before connecting the real step:
- When Started trigger.
- Try / Catch.
- From Try: Debug, Mode Throw, Error message
Simulated API failure. - From Catch: Browser Notification with Message
{{ $input.nodeLabel }} failed: {{ $input.message }}.
Once the catch branch works, replace Debug with the real step.
Common issues
Section titled “Common issues”- The run stops with “Debug node threw on demand”. That is Throw mode doing its job. Switch Mode back, or handle the error with Try / Catch or Continue On Fail in the node’s settings.
- Count, Length or Depth seems ignored. Each only applies to its own Shape.
- The delay is lost when you close the tab. Delay is a plain in-run timer. Use Wait for waits that must survive a closed tab.
- The data from the previous node is gone. Generate replaces it with sample data. Only Delay passes data through.
Related nodes
Section titled “Related nodes”- Wait: pause longer, even across a closed tab.
- Try / Catch: handle the error Throw raises.
- Stop and Error: fail a run on purpose in a finished workflow.
- Code: build custom test data.