ComfyUI  >  Nodes  >  MTB Nodes >  Debug (mtb)

ComfyUI Node: Debug (mtb)

Class Name

Debug (mtb)

Category
mtb/debug
Author
melMass (Account age: 3754 days)
Extension
MTB Nodes
Latest Updated
7/2/2024
Github Stars
0.3K

How to Install MTB Nodes

Install this extension via the ComfyUI Manager by searching for  MTB Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MTB Nodes in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Debug (mtb) Description

Experimental tool for debugging values in ComfyUI, aiding AI artists in data inspection and issue identification.

Debug (mtb):

The Debug (mtb) node is an experimental tool designed to help you debug various values within the ComfyUI environment. This node is particularly useful for AI artists who need to inspect and understand the data being processed in their workflows. By enabling you to output data to the console and visualize it in a structured format, the Debug (mtb) node aids in identifying issues and ensuring that your data is being handled correctly. The node currently supports debugging of tensors, lists, dictionaries, and boolean values, with plans to expand support for more types and widgets in the future.

Debug (mtb) Input Parameters:

output_to_console

This parameter determines whether the debug information should be printed to the console. When set to True, the node will log the values of all input parameters to the console, providing a detailed view of the data being processed. This can be particularly useful for real-time debugging and monitoring. The default value is False, meaning that console output is disabled by default. This parameter accepts a boolean value (True or False).

Debug (mtb) Output Parameters:

None

This node does not produce any direct output parameters. Instead, it generates a structured debug output that can be used for inspection and troubleshooting. The debug information includes visual representations of tensors, lists, dictionaries, and boolean values, which are organized into a user interface-friendly format.

Debug (mtb) Usage Tips:

  • Enable output_to_console to get real-time feedback on the data being processed, which can help you quickly identify and resolve issues.
  • Use this node in conjunction with other nodes to inspect intermediate data and ensure that each step in your workflow is functioning as expected.
  • Take advantage of the structured debug output to visualize complex data structures and better understand how your data is being transformed.

Debug (mtb) Common Errors and Solutions:

TypeError: 'NoneType' object is not iterable

  • Explanation: This error occurs when the node attempts to process a value that is None, which is not supported by the current processors.
  • Solution: Ensure that all input parameters have valid values before passing them to the Debug (mtb) node. You may need to add checks or default values to handle cases where inputs might be None.

KeyError: 'ui'

  • Explanation: This error indicates that the expected key 'ui' is missing from the debug output dictionary.
  • Solution: Verify that the node's internal processing functions are correctly populating the debug output dictionary. If you have customized the node, ensure that the structure of the output dictionary matches the expected format.

AttributeError: 'function' object has no attribute 'items'

  • Explanation: This error occurs when the node tries to iterate over a function object instead of a dictionary.
  • Solution: Check the types of all input parameters to ensure they are compatible with the node's processing functions. Avoid passing function objects as input parameters.

ValueError: Unsupported data type

  • Explanation: This error is raised when the node encounters a data type that it does not support.
  • Solution: Ensure that all input parameters are of supported types (tensors, lists, dictionaries, or booleans). If you need to debug other data types, consider converting them to a supported format before passing them to the node.

Debug (mtb) Related Nodes

Go back to the extension to check out more related nodes.
MTB Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.