-
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
Cannot launch pytest debugger #21505
Comments
I encountered the same error, but I noticed after refreshing the tests or reloading the window that fewer test cases showed up? When I placed a breakpoint in one of the remaining test cases, I was able to debug it. Edit: Got some repro steps.
|
@karthiknadig, thoughts on this? When we talked last it seemed semi-impossible for this to happen but we continue to get reports on it. |
@eleanorjboyd We have to see if we can repro this. I can't really say what is going on. unless we are somehow setting it to undefined. |
I just clicked the little debug icon next to the test in the test UI. Then it didn't work. I don't recall anything really special about it. |
Hello, I'm running into the same issue while running from within a dev container in VS Code. VSCode is on version 1.81.1, and Python extension version v2023.14.0.
|
@connor4312 do you have any thoughts on this? We are using inversify to inject the debugLauncher into a control class which then handles creating the test adapters and calling run/discover on them. Not sure if you have seen a similar problem in core ever or if you do anything specific with the launchDebugger. Thanks |
While I do use inversify in js-debug, I'm not at all familiar with the internals of the python extension. |
I actually was to able to (temporarily) get past this by uninstalling the Python extension from my running container, and then reinstalling the same version. Since then I have been able to debug. |
still unable to repro this issue so since it has been a month I am going to close this. Please comment if you are running into this issue and I can reopen. Thanks |
Testing #21495
I receive this error when trying to debug
The text was updated successfully, but these errors were encountered: