$ show gotcha/ipdb
ipdb is a thin wrapper that provides IPython's enhanced debugger (tab completion, syntax highlighting, better tracebacks) as a drop-in replacement for the standard pdb module. It exposes a functional API (set_trace, post_mortem, run, runcall, etc.) and a command-line interface for debugging Python scripts. The codebase is minimal and relies entirely on IPython for core debugger functionality. It supports configuration via multiple file formats (setup.cfg, .ipdb, pyproject.toml) with prioritized loading, as well as environment variables. The project has good test coverage for configuration parsing and CLI options, but the overall logic is thin and tightly coupled to IPython internals.
The LLM identified 1 files worth highlighting for reuse:
The get_config function and ConfigFile class implement a reusable, priority-based configuration loader that reads settings from setup.cfg, .ipdb, pyproject.toml, and an environment-specified config file. ConfigFile prepends a section header to plain config files for compatibility with configparser. This pattern is self-contained and could be extracted for other Python tools requiring user-configurable settings from multiple sources with clear precedence.