Breakpoints in non-stdlib modules named `io.py` are always skipped
@bschnurr is already working on this.
Since Apr 4, 2025.
Assessment
This issue has not been assessed yet.
Description
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)
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 202
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/debugpy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
All issues in microsoft/debugpy
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·