ComfyUI Node Runs on cloud

To text (Debug)

The universal peek-at-any-value node

By Derfuu·Created 3 years ago·Updated 2 years ago· 455
To text (Debug)
  • ANY
  • SAME AS INPUT
  • STRING

You've got a value flowing through your graph and no idea what it actually is. Maybe a math chain that should say 1024 says 1023.99999. Maybe a string got mangled. This is the node you drop in to see it. To text (Debug) takes literally any input, converts it to a string, and prints that string both in a widget on the node itself and in your ComfyUI console. It's the single "show me what this is" node from Derfuu's pack, and it's the one Derfuu node most people keep around after they've replaced the rest.

How it works

The input socket is typed * - the ComfyUI wildcard - so you can wire a FLOAT, an INT, a STRING, a whole conditioning, whatever, into the same node. Internally it just runs the value through Python's string conversion and dumps the result. Because it's an output node, it executes and renders its text without needing anything downstream, so you can hang it off a branch purely to inspect.

The clever part is the second output. The node passes the original value straight through unchanged, so you don't have to break your wiring to look at something. Splice it inline between two nodes and it stays a transparent tap.

The inputs and outputs that matter

There's one input, ANY (type *) - connect anything. Two outputs:

  • SAME AS INPUT (*) - the original value, untouched. Wire this onward and the node becomes an inline probe rather than a dead-end.
  • STRING - the text form of whatever you fed in, as a list. Handy if you actually want to use the string version somewhere else, not just eyeball it.

That's the whole node. No settings to get wrong.

How to install it

Easiest path is ComfyUI Manager: open the manager, search for the pack (Derfuu / "Derfuu_ComfyUI_ModdedNodes"), install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes

then restart ComfyUI. It's pure Python - no requirements.txt, no model files, no heavy dependencies. Nothing downloads.

Common issues & troubleshooting

The widget stays empty. The text only updates after the node actually runs. If it's sitting on a branch that never executes, or the graph errored upstream, you'll get nothing. Check the console - the print lands there too.

You wanted the number, not a picture of the number. Remember the STRING output is text. If you feed it into something expecting a FLOAT you'll get a type mismatch. Use the SAME-AS-INPUT passthrough to keep the original type moving.

The node went red after updating the pack. Derfuu has a habit of outright deleting deprecated nodes on updates instead of leaving them in place labeled "old," which has broken people's downloaded workflows before. If a debug node in an old graph won't load, it may simply not exist under that name anymore - drop in a fresh copy of this one. And if you ever see a ModuleNotFoundError mentioning Derfuu_ComfyUI_ModdedNodes_legacy, you've got a duplicated/renamed clone of the folder; keep exactly one, named Derfuu_ComfyUI_ModdedNodes.

Honestly, for a lot of quick checks native ComfyUI's preview and the built-in primitives will do. But when you need to see any type - including the weird internal ones - this is still the fastest tap in the toolbox.

CategoryDerfuu_Nodes/Debug

Inputs (1)

NameTypeDefaultDescription
ANY*

Outputs (2)

NameTypeDescription
SAME AS INPUT*
STRINGSTRING