To text (Debug)
Peek at any value without breaking the wire
- ANY
- SAME AS INPUT
- STRING
You've got a value moving through your graph and no idea what it actually is - a math chain that should land on 1024 but you're not sure it does, a string that might've gotten mangled by a replace step, a TUPLE you built and want to eyeball before it hits something expensive. DF_To text (Debug) is the node for that: it 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 - while passing the original value through unchanged, so you don't have to break your wiring to inspect it.
This pack also ships a bare To text (Debug) node doing the exact same job, in the same Derfuu_Nodes/Debug category - the older, unprefixed name. DF_To text (Debug) is the current name matching the rest of the pack's DF_-prefixed nodes; functionally there's no difference, so if you inherited a workflow with the bare version, leave it alone.
How it works
The input socket is typed *, the ComfyUI wildcard, so you can wire a FLOAT, an INT, a STRING, a whole LATENT, a TUPLE - anything - into it. Internally it runs the value through a string conversion and dumps the result to both the widget and the console. Because it's an output node, it executes and renders text on its own without needing anything downstream, so you can hang it off a branch purely to inspect a value.
The genuinely useful part is the second output: the node passes the original value through untouched. Splice it directly between two existing nodes and it stays a transparent tap on the wire, instead of forcing you to dead-end the connection just to look at something.
The inputs and outputs that matter
One input:
- ANY (
*) - connect anything.
Two outputs:
- SAME AS INPUT (
*) - the original value, unchanged, so you can keep wiring downstream. - STRING - the text form of whatever you fed in, in case you want to actually use the string version somewhere else rather than just read it.
No settings, nothing to misconfigure.
Where it fits
Drop it anywhere in a graph where you're not sure a value is what you expect: after a chain of Derfuu math nodes before it hits an image resize, after a string concat before it reaches a text encoder, after unpacking a tuple. Because the input is untyped, it's the one debug node in the pack you reach for when you don't already know - or don't want to specify - what type is flowing through that wire. If you're debugging a specific known type instead, the pack's dedicated sinks (Float debug print, Int debug print, String debug print, Tuple debug print) let you attach a text label so multiple debug taps in one graph don't blur together in the console - a trade-off against this node's universal-but-unlabeled approach.
How to install it
ComfyUI Manager: search Derfuu_ComfyUI_ModdedNodes, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes
then restart. Pure Python - no requirements.txt, no model files, nothing to download.
Common issues & troubleshooting
The widget stays empty. Text only appears after the node actually runs - if it's on a branch that never executes, or the graph errored upstream of it, you'll see nothing. Check the console; the print lands there too.
You wanted the number, not text of the number. The STRING output is text, not a numeric type - feeding it into a node expecting FLOAT or INT will type-mismatch. Use the SAME-AS-INPUT passthrough to keep the original type moving, and only take the STRING output when you actually want text.
Node went red after a pack update. Derfuu has a history of deleting deprecated nodes on updates rather than leaving them in place - this has broken downloaded workflows before, on debug and text nodes specifically. If this node won't load in an old graph, drop in a current copy and reconnect. A ModuleNotFoundError mentioning Derfuu_ComfyUI_ModdedNodes_legacy means a duplicated folder - keep exactly one, named Derfuu_ComfyUI_ModdedNodes.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| ANY | * | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| SAME AS INPUT | * | — |
| STRING | STRING | — |