Skip to content

Setting --pdbclass should not enable --pdb #2365

Closed
@sloria

Description

@sloria

Currently when you pass the --pdbcls option, the --pdb behavior is automatically enabled. This is not intuitive. I want to be able to set --pdbcls=IPython.core.debugger:Pdb in my setup.cfg without always using the debugger when I run tests.

The problem appears to lie here:

    if config.getvalue("usepdb") or config.getvalue("usepdb_cls"):
        config.pluginmanager.register(PdbInvoke(), 'pdbinvoke')
         #...

Debugger behavior is enabled even if --pdb is not necessarily passed.

Would the maintainers be open to changing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributorstatus: help wanteddevelopers would like help from experts on this topictype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions