-
Notifications
You must be signed in to change notification settings - Fork 147
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
Debug Test in vscode fails inside container #1415
Comments
If you open the Output pane, and select Python Test Log, you should see the exact command line it's running pytest with - this might help identify any missing options. If there's nothing there that sticks out, can you share that log? |
Hi @int19h, Please find below the output of running pytest from the output tab ("Python Test Log"):
After i remove all docker images and recreate everything and repeat the experiment, the problem persists but now the output pane for "Python Test Log" is:
I have added the project to this comment. Thanks for looking into this. |
Hm, so with your new repro (with the fresh container), it looks like it's working? Or are you still seeing the error in the other pane? |
Yes the problem persists. I get the same error as in the description when i debug. (But, as you asked me to run pytest which i understood to be without debug so, just run debug, i get the output i mention in the previous comment). In short my problem is still here <- I cannot break and debug code. |
Closing old issue. If this is still a problem, please reopen with the information requested. thanks |
Configuration:
I am using the following version of VSCode:
With the Python Extension
ms-python.python
versionv2020.6.8
. The only PIPs installed are:Problem
I am trying to debug my python tests in vscode and i get the following error in the debug console:
The tests themselves run fine in the terminal. In other terms there is no issue with not being able to find the "missing" module. Example:
The way I am launching the debugger is by clicking on the
Debug Test
link of the given test. Below is the .devcontainer.json configuration being used:I think that this is most likely a bug and would like to report it. Otherwise, can someone tell what I am missing in my
.devcontainer.json
?The text was updated successfully, but these errors were encountered: