ComfyUI Node Runs on cloud

Tuple debug print

Check both halves of a bundled pair

By Derfuu·Created 3 years ago·Updated 2 years ago· 455
Tuple debug print
  • Values
    Prefix

    You've packed two numbers into one of Derfuu's TUPLE bundles and you're not confident they're what you meant - is that (width, height) or did you swap them on the way in? Tuple debug print is the sink node for checking: hand it a TUPLE and a text label, and it prints both values to the console the moment the graph runs. Like the pack's other debug nodes, it's a dead end - nothing comes out the other side.

    How it works

    It takes a TUPLE plus a Prefix string and writes them to standard output during execution. The prefix matters more here than on most debug nodes, because a tuple prints as two numbers with no built-in label for which is which - size: (1024, 768) tells you far more than an anonymous pair would if you've got several tuples flowing through one graph. Being an output node, it runs on its own the moment its input is available, no downstream connection needed.

    The inputs and outputs that matter

    • Prefix (STRING, default empty) - a label printed before the values, e.g. paste position or crop size.
    • Values (TUPLE) - the tuple to print.
    • No outputs - this is a terminal debug sink, not a pass-through.

    Where it fits

    Drop it right after building a tuple with Tuple or Int to tuple, or after transforming one with Tuple multiply or Tuple swap, to confirm both halves landed where you expect before the tuple reaches something that actually acts on it - LatentComposite with tuples, a conditioning area node, whatever's consuming it. This matters more for tuples than for a plain float or int, because a tuple's two components can silently swap (see Tuple swap) or both drift the same direction from a rounding step, and the resulting bug - a paste landing in the wrong spot, a region coming out sideways - is genuinely hard to trace back without seeing both numbers at once. If you'd rather see the value on the node itself rather than in a scrolling console log, Derfuu's To text (Debug) accepts any type, including a tuple, shows it in a widget, and passes it through unchanged.

    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. No dependencies, no models - plain Python.

    Common issues & troubleshooting

    Nothing shows up. It prints to the console where ComfyUI runs, not the browser. On a desktop launcher or a remote instance, you need the terminal/server log open. It also only prints when the node executes - a pruned branch prints nothing.

    Wrong type going in. The input is specifically TUPLE, Derfuu's own type - a plain FLOAT or INT won't connect here. Use Float debug print or Int debug print for those, or pack the values into a tuple first with Tuple.

    It's a dead end. By design there's no output. If you need to inspect a tuple and keep it moving downstream, use To text (Debug) instead, which passes its input through.

    Node missing after a pack update. Derfuu's tuple-related nodes specifically have a documented history of being deleted between versions with no legacy label kept - a long-time user reported this happening and said they stopped relying on the pack over it. If this node loads red in an old graph, drop in a current copy and reconnect. A ModuleNotFoundError about Derfuu_ComfyUI_ModdedNodes_legacy means a duplicated folder; keep exactly one, named Derfuu_ComfyUI_ModdedNodes.

    CategoryDerfuu_Nodes/Debug

    Inputs (2)

    NameTypeDefaultDescription
    PrefixSTRING
    ValuesTUPLE

    Outputs (0)

    No outputs