-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
justMyCode: false ignored in python 3.12 and above when running tests #24439
Comments
@justschen - tagging you since user reported issue with the issue reporter |
I will investigate- thank you for the report! |
I'm finding that |
Same issue here with justMyCode: false being ignored in 3.12. Reverted to 3.11 to debug something and it worked. |
Same here. In Windows + python3.11 However, it is ignored when debugging tests for configurations such as WSL+python3.12 or Windows+python3.12. For what it's worth, there is a difference in popup messages when trying to step into the python standard library code, as it is shown below (the first one is for |
Can confirm this happening in WSL with Python 3.12. |
Confirming problem with debugging tests on SSH-Remote to MacOS on python 3.12. Debugging tests don't work and either magic config like {
"name": "Python: Debug Tests",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"purpose": [
"debug-test",
"debug-in-terminal",
],
"console": "integratedTerminal",
"justMyCode": false
}, for launch.json don't work. |
@anthonykim1 is this included with the 3.12 work you are doing or is this separate? |
@eleanorjboyd Did you mean Python3.13 REPL in terminal related work? Then no, I think they are separate |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
Should this be marked as a feature request? Was this fixed? I don't think this should be closed yet |
Can you please pin this issue so the bot doesn’t bury it? |
Note: I could not get the Issue Reporter to work in vscode, so I had to use the feature-request link to create this.
Behaviour
In Python 3.12 and above, when debugging tests, the
"justMyCode": false
setting is ignored.Steps to reproduce:
requests
)test_external_library.py
and create a simple function that calls the external libraryNote: this occurs with python installations using
uv
,conda
andhomebrew
.Example
test_external_library.py
:In this situation, I set a breakpoint inside the requests
get
function (insideapi.py
)launch.json
config:Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: