ComfyUI Node

Text Print

A ComfyUI node in Zuellni/Text with 2 inputs and 0 outputs.

By Zuellni·Created 3 years ago·Updated 3 years ago· 43
Text Print
      prefix
      text

      Every debugging journey in this pack ends the same way: Text Print dumps a string to the ComfyUI console. Two inputs, no outputs, one job - print text (with an optional prefix) so you can actually see what a value is mid-graph. It sounds trivial, and it is, and that's exactly why it's useful.

      What it is

      An output node (marked OUTPUT_NODE in the source, so ComfyUI treats it as a terminal) that takes a text string and prints it to the console where ComfyUI runs. The prefix input prepends a colored label - [prefix]: text - so when you have several of these in a workflow, you can tell which one printed what at a glance.

      Why you need it

      ComfyUI's graph UI doesn't show you the values flowing through string wires. When something's going wrong, you have three options: guess, add a preview node that may not accept your type, or drop a print node on it and watch the console. This is the honest third option. The README's own framing nails the use case: "to see what sort of prompt your LLM came up with." If you're running the pack's LLM prompt-generation loop - Text Loader → Text Prompt → sampler - the single most useful thing you can do is print the generated prompt before it hits the sampler. You'll discover immediately whether the LLM produced something sane or a 200-word rant.

      How you'd use it

      Wire any STRING into text. Set prefix to something memorable like PROMPT or SCORE. Run the graph, then look at the terminal/console window where ComfyUI is running - that's where the output appears, not in the browser. You can chain it anywhere: after Text Format to verify template assembly, after a generated prompt, or on a computed value to sanity-check before a Text Condition gate.

      The catch is the same as any print node: it prints every time the graph executes, and it's not visible unless you have the console open. If you forget a print node in a batch workflow, you get a wall of text per run. Keep them around while debugging, strip them before you share the workflow.

      Install

      Part of Zuellni/ComfyUI-Custom-Nodes, via ComfyUI Manager (search "Zuellni") or:

      cd ComfyUI/custom_nodes
      git clone https://github.com/Zuellni/ComfyUI-Custom-Nodes
      

      Zero dependencies beyond Python's built-in print. The pack is archived, but a print statement can't rot. If you're looking for a more featureful debug node, plenty of packs have "show text on canvas" nodes - but for a quick, no-frills console dump that's still working in 2026, this is it.

      CategoryZuellni/Text

      Inputs (2)

      NameTypeDefaultDescription
      prefixSTRING
      textSTRING

      Outputs (0)

      No outputs