-
Notifications
You must be signed in to change notification settings - Fork 26
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
Read test debug configuration from settings not just launch.json #532
Comments
Hi @ElPincheTopo, the launch.json configuration has changed for debugging tests (see https://code.visualstudio.com/docs/python/testing#_debug-tests). Can you try the configuration below? "launch": {
"configurations": [ {
"name": "Python: Debug Tests",
"type": "python",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
}
],
"compounds": []
} And just out of pure curiosity, what is the reason behind using it on your workspace configuration rather than launch.json? |
We currently only read this from the launch.json. We could expand the scope of where we read it from, but that has some things that we have not decided yet. Like how we handle multiple test configurations, which one takes priority, etc. |
Thanks for the hint @luabud. It's good to know that that has changed, but it still behaves on the same way as my original example. @karthiknadig I think that test configurations defined in the Folder settings ( Currently, if you have more than one test configuration defined in your |
It doesn't help that the command |
I have the same workflow, vscode settings in a workspace settings rather than in the repository, so I'd love to see a solution to this. I found this issue after reading microsoft/vscode-python#693 and the last comment in that thread seems to be about this issue, so commenting to link the two. |
Issue Type: Bug
Behaviour
Expected vs. Actual
Adding this to my
.vscode/launch.json
allows me to use breakpoints in third-party libraries when debbuging unit tests:I expect that adding the same to the
launch
section of my workspace settings would produce the same behaviour but this is not true.Steps to reproduce:
.vscode/launch.json
file..vscode/launch.json
file.Diagnostic data
python.languageServer
setting: DefaultUser Settings
Extension version: 2022.2.1924087327
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T15:36:26.048Z)
OS version: Linux x64 4.14.240
Restricted Mode: No
The text was updated successfully, but these errors were encountered: