-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakpoints in non-stdlib modules named io.py
are always skipped
#542
Comments
io.py
are always skippedio.py
are always skipped
How are you debugging? Are you using a config? Did you set the justMyCode to false? |
FWIW I have just tested this on a different machine (still macOS arm64) with completely fresh installs of Python and vscode... and I continue to observe this behaviour. |
Hey @eleanorjboyd, this issue might need further attention. @ollie-bell, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Hi! This should be fixed by 84ce2f2. I wasn't getting the global vscode settings correctly. You can give it a try on the pre-release of the python extension and comment here so I can re-open if it is still not working. Thanks! |
Unfortunately no, switching to pre-release for both the Python and Python Debugger extensions hasn't fixed the issue. I didn't think the issue was related to vscode settings to be honest? Are you unable to replicate the issue using the setup I have described in the initial issue description? That's what I am testing with and seeing this behaviour with (and that's a minimal reproduction, I have observed this behaviour for two real packages). Here is a screen capture of the issue: https://drive.google.com/file/d/14VzM_JsLpXuRXOMQTKuc_XiJz7Qke2QV/view?usp=share_link First I name the module |
Any breakpoint within a non-stdlib module named
io.py
will always be skipped.e.g. consider the python package:
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()
inmypackage.io.foo
and runningpython -m mypackage.main
)The text was updated successfully, but these errors were encountered: