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)
Any breakpoint within a non-stdlib module named
io.pywill always be skipped.e.g. consider the python package:
If you add a breakpoint inside
mypackage.io.fooit 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()inmypackage.io.fooand runningpython -m mypackage.main)