Output to Console icon

Output to Console

Outputs data to the browser console

Overview

This node outputs specified text to the browser console during workflow execution. It is useful for debugging or logging purposes within an n8n workflow, allowing users to see custom messages or data directly in the console output of the browser interface. For example, a user might output variable values or status messages at certain points in a workflow to verify correct operation or troubleshoot issues.

Properties

Name Meaning
Text To Output The text or expressions to output to the browser console. This supports multiple assignments that can be formatted and displayed as lines in the console.

Output

The node outputs the input data unchanged as JSON. Specifically, it returns the input items as an array in the json field, preserving all original data. No binary data is produced by this node.

Dependencies

  • No external services or API keys are required.
  • The node relies on internal utility functions (from OutputUtilities) to format and manage the output text.
  • No special environment variables or n8n configurations are necessary.

Troubleshooting

  • If no output appears in the browser console, ensure that the "Text To Output" property is correctly configured with valid expressions or text.
  • Errors during execution will be caught and displayed as error messages in the UI console output area.
  • Common error message: Error: <message> indicates an issue formatting or processing the output text; verify the syntax and validity of the assigned expressions.

Links and References

  • n8n Documentation: Creating Custom Nodes
  • Browser Console Debugging Techniques (general web development resource)

Discussion