ComfyUI startup manager, version detective, and troubleshooting toolkit.
Project description
comfydbg
ComfyUI startup manager, version detective, and troubleshooting toolkit.
The Problem
ComfyUI's package ecosystem moves fast. A pip install -r requirements.txt can silently upgrade your frontend, break your workflows, and leave you debugging version mismatches for hours. Custom nodes inject frontend JavaScript that can corrupt the canvas. And when something breaks, you're left manually bisecting through dozens of packages and nodes to find the culprit.
comfydbg gives you targeted package control, version fingerprinting from workflow images, and automated binary search for broken custom nodes.
Quick Start
pip install comfydbg
Then from your ComfyUI directory:
# Start ComfyUI, skipping problematic frontend package
comfydbg
# Check what's installed vs what's required
comfydbg version
# Find which custom node is breaking your canvas
comfydbg bisect start
Features
- Targeted pip management: Skip, force-reinstall, or rollback individual packages without touching the rest of your environment
- Version rollback: Step back through PyPI or GitHub release history with
-1,-2,-3or-HN N(Nth from newest) - GitHub source install: Install from GitHub releases when PyPI is broken, with automatic build recipes for non-standard packages (e.g.,
comfyui-frontend-package) - Workflow fingerprinting: Extract version info embedded in ComfyUI output images (.png, .webp) -- shows frontend version, backend version, and custom node versions
- Mismatch detection: Compare workflow requirements against installed packages, flag what's changed
- Custom node bisect: Binary search through 60+ custom nodes in ~6 rounds to find which one is causing canvas corruption, crashes, or errors
- Version comparison: Side-by-side view of installed vs required versions with
[MISMATCH]and[MISSING]flags
Commands
# Startup (skip frontend, install rest, launch ComfyUI)
comfydbg # default behavior
comfydbg skip pkg1 pkg2 -- --listen 0.0.0.0 # skip specific packages
comfydbg full # install everything from requirements.txt
comfydbg full -F # force-reinstall everything (nuclear option)
comfydbg force comfyui-frontend-package==1.39.19 # force specific version
# Package management with rollback
comfydbg install comfyui-frontend-package -1 # one version back from current
comfydbg install comfyui-frontend-package -HN 3 # 3rd from newest on PyPI
comfydbg install comfyui-frontend-package -G # from GitHub release
comfydbg install comfyui-frontend-package -U -HN 5 # uninstall first, 5th from top
# Diagnostics
comfydbg version # show key package versions
comfydbg version --all # all packages from requirements.txt
comfydbg detect output/my_image.webp # workflow fingerprint from image
comfydbg detect workflow.json --save extracted.json # extract + save workflow
# Custom node bisect (find the broken node)
comfydbg bisect start # begin binary search
comfydbg bisect good # canvas works -> culprit in other half
comfydbg bisect bad # canvas broken -> culprit in this half
comfydbg bisect exclude soundflow # remove crashing node, continue
comfydbg bisect restore # put excluded nodes back
comfydbg bisect reset # clean up
For detailed parameter descriptions, see docs/parameters.md.
How Bisect Works
Like git bisect, but for custom nodes. ComfyUI's --whitelist-custom-nodes flag lets us enable half the nodes at a time without moving files. Each round halves the candidate set:
Round 1: 63 nodes -> test 31 (good/bad?)
Round 2: 31 nodes -> test 15 (good/bad?)
Round 3: 15 nodes -> test 7 (good/bad?)
Round 4: 7 nodes -> test 3 (good/bad?)
Round 5: 3 nodes -> test 1 (good/bad?)
Round 6: Found it! -> smart-resolution-calc
If a node crashes ComfyUI on startup (e.g., soxr nanobind error), use comfydbg bisect exclude <node> to move it aside and continue.
How Detect Works
ComfyUI embeds workflow metadata in output images. comfydbg detect extracts this and compares against your current install:
===========================================================================
Workflow Version Fingerprint
Source: 2026-03-20_06-41-48_qwen_1.webp
===========================================================================
Backend: 0.15.1 Installed: 0.17.2 [MISMATCH]
Frontend: 1.41.20 Installed: 1.39.19 [MISMATCH]
Package Workflow Installed Status
----------------------------------- ---------------- ---------------- --------
ComfyUI-GGUF cf0573351a 1.1.10 [CHANGED]
RES4LYF 7750bf7800 7750bf7800 [MATCH]
comfyui_essentials 1.1.0 1.1.0 [MATCH]
rgthree-comfy 1.0.2509092031 1.0.2509092031 [MATCH]
Recovery suggestions:
Backend: git checkout v0.15.1
Frontend: comfydbg force comfyui-frontend-package==1.41.20
===========================================================================
Requirements
- Windows 10 or 11 (ComfyUI is primarily Windows-based)
- Python 3.10+
- ComfyUI installed via git clone (not the standalone build)
- gh CLI optional (for GitHub release queries and bisect)
Installation
# From PyPI
pip install comfydbg
# From source (development)
git clone https://github.com/djdarcy/comfydbg.git
cd comfydbg
pip install -e ".[dev]"
As a begin.cmd replacement
Create a comfydbg.cmd in your ComfyUI directory:
@echo off
call venv\scripts\activate
python -m comfydbg %*
Then use comfydbg instead of begin for all startup and package management.
Roadmap
- Targeted pip management (skip, force, install with rollback)
- Version comparison and mismatch detection
- Workflow fingerprinting from images (PNG, WebP)
- Custom node bisect
- GitHub release install with build recipes
-
comfydbg pin/comfydbg restore-- snapshot and rollback working environments -
comfydbg recover-- auto-match workflow versions and install - AI-enhanced diagnostics (dependency conflict explanation, crash analysis)
- Rich terminal output (tables, panels, progress bars)
- Cross-platform support (Linux, macOS)
See ROADMAP.md for the full plan.
Contributing
Contributions welcome! See CONTRIBUTING.md.
License
comfydbg, Copyright (C) 2026 Dustin Darcy
Licensed under the GNU General Public License v3.0 (GPL-3.0) -- see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comfydbg-0.1.0a1.tar.gz.
File metadata
- Download URL: comfydbg-0.1.0a1.tar.gz
- Upload date:
- Size: 67.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a1a7b8dd299af38a4695d0060363af98d5bba6d5fbf405abf076d07d4f54e31
|
|
| MD5 |
373000ecba46b1f51458dbcad44e4ee3
|
|
| BLAKE2b-256 |
73fe1326f236611773df61e1aa627274cfbe77eb6168b2ade248a450f95a945b
|
Provenance
The following attestation bundles were made for comfydbg-0.1.0a1.tar.gz:
Publisher:
release.yml on DazzleNodes/comfydbg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comfydbg-0.1.0a1.tar.gz -
Subject digest:
6a1a7b8dd299af38a4695d0060363af98d5bba6d5fbf405abf076d07d4f54e31 - Sigstore transparency entry: 1154467931
- Sigstore integration time:
-
Permalink:
DazzleNodes/comfydbg@fd059cc6ad12343f422c3a34f671d71c684319a8 -
Branch / Tag:
refs/tags/v0.1.0a1 - Owner: https://github.com/DazzleNodes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd059cc6ad12343f422c3a34f671d71c684319a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file comfydbg-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: comfydbg-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 69.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddc2d46fc12cf0bd8488f316c961fee0246ad0b98c7da2b9020e48a8e91583cf
|
|
| MD5 |
bf55cafdf3ed26772c8ad5252f6ae3b0
|
|
| BLAKE2b-256 |
f7882d8dc38c990ff03c1f4b80a56ab18417289a352b1aa0d7404475c0b65b6a
|
Provenance
The following attestation bundles were made for comfydbg-0.1.0a1-py3-none-any.whl:
Publisher:
release.yml on DazzleNodes/comfydbg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comfydbg-0.1.0a1-py3-none-any.whl -
Subject digest:
ddc2d46fc12cf0bd8488f316c961fee0246ad0b98c7da2b9020e48a8e91583cf - Sigstore transparency entry: 1154467936
- Sigstore integration time:
-
Permalink:
DazzleNodes/comfydbg@fd059cc6ad12343f422c3a34f671d71c684319a8 -
Branch / Tag:
refs/tags/v0.1.0a1 - Owner: https://github.com/DazzleNodes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd059cc6ad12343f422c3a34f671d71c684319a8 -
Trigger Event:
push
-
Statement type: