Skip to main content

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.