Nodes/ComfyUI_AIIA/Text Debug Splicer (AIIA)
ComfyUI Node

Text Debug Splicer (AIIA)

Five string outputs to read at once — this node does the joining for you

By havvk·Created about a year ago·Updated 6 months ago· 13
Text Debug Splicer (AIIA)
    • combined_text
    title_1Text 1
    title_2Text 2
    title_3Text 3
    separatorDash Line (---)
    save_prefixdebug_spliced
    save_filetrue
    return_texttrue
    text_1
    text_2
    text_3

    The most annoying part of debugging a prompt pipeline in ComfyUI isn't the math, it's the strings. You've got three different text outputs - a cleaned prompt, a tag stack, a wildcard expansion - and you want to see them next to each other, not in three separate widgets. This node staples up to three text inputs into one labeled, readable block, and it'll even save the result to a file for you.

    It's a debug tool from the AIIA pack's utility drawer, and it does exactly one job: join. For each connected text input it builds a [title] section header followed by the text, then joins all the sections with a separator you choose, and hands you the combined string. Which means it doubles as a lightweight prompt builder - construct a complex prompt out of parts and inspect exactly what's going to the encoder.

    The inputs that matter

    Most of them are trivial, but here's the set:

    • text_1 / text_2 / text_3 - the actual strings, wired in from upstream. All optional; it just skips whatever's not connected.
    • title_1 / title_2 / title_3 - the labels. Default to "Text 1/2/3"; rename them so the output is readable.
    • separator - one of New Line (\n), Double New Line (\n\n), Dash Line (---), Hash Line (###), Star Line (***). The dash line reads best for debugging; the plain newline is what you want if you're building a prompt.
    • save_file (default on) - writes <save_prefix>_<timestamp>.txt into ComfyUI's output folder. Great for recording an intermediate result before you change something.
    • return_text (default on) - whether the output should actually carry the string.

    Output: combined_text (STRING). This is an output node, so if return_text is off it returns an empty string but the node still does its file-save job.

    How it works

    Plain string assembly: [title]\n<text> blocks joined by your separator. The only clever bit is the separator mapping - the dropdown labels map to real control characters behind the scenes (Dash Line becomes \n---\n, and so on). The file-save path uses save_prefix plus a timestamp so repeated runs never overwrite each other.

    Install

    It ships inside havvk/ComfyUI_AIIA, so it comes along with the whole pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/havvk/ComfyUI_AIIA.git
    

    or search "ComfyUI_AIIA" in ComfyUI Manager, then restart. Zero extra dependencies, zero models. It's pure text manipulation.

    Common issues

    • "The output is empty." Check return_text - it defaults to on, but if you flipped it to use the node purely as a file logger, there's nothing coming out the wire. That's by design.
    • Titles you forgot to change. The defaults ("Text 1") are honest but useless later. Rename them or your debug log reads like a ransom note.
    • The .txt lands in output/, not next to your workflow. That's ComfyUI convention, but it surprises people the first time they hunt for the file.
    CategoryAIIA/Debug

    Inputs (10)

    NameTypeDefaultDescription
    title_1STRINGText 1
    title_2STRINGText 2
    title_3STRINGText 3
    separatorCOMBODash Line (---)5 options: New Line (\n), Double New Line (\n\n), Dash Line (---), Hash Line (###), Star Line (***)
    save_prefixSTRINGdebug_spliced
    save_fileBOOLEANtrue
    return_textBOOLEANtrue
    text_1optSTRING
    text_2optSTRING
    text_3optSTRING

    Outputs (1)

    NameTypeDescription
    combined_textSTRING