Nodes/ComfyUI-NL_Nodes/NL Context Debug
ComfyUI Node

NL Context Debug

Peek inside your shot context and see what the pack actually knows

By NOLABEL-VFX·Created 9 months ago·Updated 2 months ago· 0
NL Context Debug
    • context_json
    workflow_id
    use_lasttrue
    print_to_consoletrue

    Every workflow-context system eventually needs its flashlight, and NL Context Debug is this pack's. The whole NOLABEL design is that a top-bar NL Workflow panel holds your shot context - project, scene, shot, resolution, fps, frame range, project path - and a bunch of nodes quietly read from it. That's elegant until something reads a value you didn't expect, and then you need to see the raw context to figure out which node is lying to you. This node dumps the whole cached context as JSON so you can look at it.

    It's a debug node, so it does two things and nothing else: it emits the context JSON, and it can print it to the console. No inputs required - the context is the input.

    What it does

    • workflow_id - optional; pin it if you have multiple context states and want a specific one.
    • use_last - default true, meaning "give me the most recently applied context." This is the one you'll almost always want.
    • print_to_console - default true. Dump the JSON to the ComfyUI console log while you're at it, which is genuinely handy because a node with no visible widget output is otherwise a black box.

    Output: context_json, a STRING with the full context. Wire it into a text-display or any node that can render a string, and you can read your project, frame range, resolution, and the rest in one place.

    When you'd bother

    Two honest moments. First, the "why is NL Read pulling the wrong frame range" moment - when a context-driven value is off, this node tells you whether the context itself is wrong (fix it in the NL Workflow panel) or the node is (now you know where to look). Second, when you're building templates or shared workflows and you want to confirm that a loaded workflow is carrying the context you think it is. It's also a decent on-ramp for understanding the whole system: run it once on a fresh setup and you'll see exactly what "context" means in this pack.

    Install

    Standard pack install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/NOLABEL-VFX/ComfyUI-NL_Nodes
    

    or ComfyUI Manager → "ComfyUI-NL_Nodes", restart. No dependencies beyond the base set. The one note: it returns an empty/empty-ish JSON if you never opened the NL Workflow panel and applied a context - which, conveniently, is itself diagnostic information. Empty context means nothing upstream is getting context values either.

    CategoryNOLABEL/Workflow

    Inputs (3)

    NameTypeDefaultDescription
    workflow_idoptSTRING
    use_lastoptBOOLEANtrue
    print_to_consoleoptBOOLEANtrue

    Outputs (1)

    NameTypeDescription
    context_jsonSTRING