Danbot Print String
The debugging node that shows you what the tag model actually said
- STRING
When a tag-translation pipeline quietly produces garbage, you want to see the actual string - and ComfyUI's default answer is "the console," which nobody reads. Danbot Print String is the pack's debugging node: it prints whatever string you feed it to the ComfyUI terminal and shows it in the UI, so you can actually see the intermediate output in a text-heavy workflow.
Don't underestimate how useful this is with this pack specifically. The Danbot pipeline passes strings around invisibly - the Generator's cleaned output, the raw output with special tokens, extractor dicts, formatter templates - and the only way to debug is to look at the strings at each stage. This node is how you do that. The pack's own example workflow even wires it to the final prompt ("Generated tags with quality tags") to verify what's about to hit the text encoder.
How it works
One input, input_string, wired from whatever string you want to inspect (it's forceInput, so wire it, don't type). Two behaviors:
- It prints
input_string: <your text>to the ComfyUI console - the terminal where you launched ComfyUI. - It's an output node (
OUTPUT_NODEis true in the source) with a small JS extension, so the text also renders in the node's UI on the canvas. You don't need the console at all.
It also passes the string through unchanged on its STRING output, so you can drop it mid-chain for inspection without breaking the flow: Generator → Print String → next node.
Where it earns its keep
Debugging the two-pass pipeline. If your extension pass is producing empty results, put this on the Generator's raw_output before the Extractor - the likely culprit is feeding cleaned output instead of raw output, and you'll see the missing <extension> markers instantly. Same trick for the Formatter's tag_template: print it once to confirm the rating/aspect tokens are in place before you blame the model.
One honest caveat: the node itself is pack-agnostic - there are a hundred print string nodes in the ecosystem and this one isn't special. But it's here, ships with the pack, and since the pack's own workflow uses it, you're not adding another custom node to debug this pack. That's worth something.
Install
ComfyUI Manager → danbot-comfy-node, or:
cd ComfyUI/custom_nodes
git clone https://github.com/p1atdev/danbot-comfy-node
cd danbot-comfy-node
pip install -r requirements.txt
(portable: ../../../python_embeded/python.exe -s -m pip install -r requirements.txt.) Restart ComfyUI; it's under prompt/Danbooru Tags Translator/utils.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input_stringopt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |