# set_debug

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/globals/set_debug)

Set a new value for the `debug` global setting.

## Signature

```python
set_debug(
    value: bool,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `value` | `bool` | Yes | The new value for the `debug` global setting. |

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/c197a7b6f757860df429aefb8e8a40a60d75987f/libs/core/langchain_core/globals.py#L37)