Skip to content

Breakpoints in non-stdlib modules named io.py are always skipped #1887

@ollie-bell

Description

@ollie-bell

Any breakpoint within a non-stdlib module named io.py will always be skipped.

e.g. consider the python package:

.
├── mypackage
│   ├── __init__.py
│   ├── io.py
│   └── main.py
└── pyproject.toml
# mypackage/io.py

def foo():
    return "hello from mypackage.io.foo"
# mypackage/main.py

from mypackage.io import foo


def main():
    return foo()


if __name__ == "__main__":
    main()

If you add a breakpoint inside mypackage.io.foo it will always be skipped, and you cannot step into that module.

Renaming the module to anything else fixes the issue.

PDB honour's breakpoints in that module (i.e. add breakpoint() in mypackage.io.foo and running python -m mypackage.main)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds reproIssue has not been reproduced yet

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions