Skip to content

Add ignore_module/unignore_module commands to pdb #139721

@ktowen

Description

@ktowen

Feature or enhancement

Proposal:

Add two new commands to the Python debugger (pdb) to ignore and unignore specific modules when navigating frames.
Those commands allows to use wildcards to ignore submodules too.

  • ignore_module [module_name] - Add modules to skip during debugging
  • unignore_module [module_name] - Remove modules from the skip list

When debugging applications we often need to step through deep stack traces from third party libraries that are hard to navigate and makes focusing on our code harder, requiring to manually go up or down to find our code.

There is a similar implementation on ipython ipython/ipython#14973

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions