> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# python-interactive-debugger

> A Python call enters an interactive debugger in production source.

## What it flags

An unshadowed `breakpoint()` call or a `pdb.set_trace()` call backed by an unambiguous `import pdb` can pause a production process. Tests, development utility files, and calls in an `if __name__ == "__main__"` guard are skipped.

The rule leaves `pdb` imports unclassified when a project-local module or package can shadow the standard library. When a file exceeds the debugger evidence budget, Loadwise reports the coverage limit and continues the other checks.

## How to review or fix

Remove the debugger call when it is no longer needed, or keep it in development tooling. Check for interactions with surrounding cleanup and conditional behavior before editing.

## Configuration

Set `"python-interactive-debugger": "off"` in the `rules` section of `loadwise.config.json` to omit these findings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.