Home / Function/ set_debug() — langchain Function Reference

set_debug() — langchain Function Reference

Architecture documentation for the set_debug() function in globals.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0ede07e5_9869_00c7_af06_0ccd52afd70d["set_debug()"]
  bbdcb3a7_3999_113d_5595_dc3cb513799c["globals.py"]
  0ede07e5_9869_00c7_af06_0ccd52afd70d -->|defined in| bbdcb3a7_3999_113d_5595_dc3cb513799c
  style 0ede07e5_9869_00c7_af06_0ccd52afd70d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/globals.py lines 37–44

def set_debug(value: bool) -> None:  # noqa: FBT001
    """Set a new value for the `debug` global setting.

    Args:
        value: The new value for the `debug` global setting.
    """
    global _debug  # noqa: PLW0603
    _debug = value

Domain

Subdomains

Frequently Asked Questions

What does set_debug() do?
set_debug() is a function in the langchain codebase, defined in libs/core/langchain_core/globals.py.
Where is set_debug() defined?
set_debug() is defined in libs/core/langchain_core/globals.py at line 37.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free