-
Notifications
You must be signed in to change notification settings - Fork 28
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
Pytest. Rerun code in debug ignores launch.json config #418
Comments
Thanks @slavanorm for your bug report, there is a know error for the reload behaviour in tests here. What I can help you with is to see the error when using |
I couldn't manage to make tests work with debugpy at all. |
Yes, it should work for testing, Can you share your Python Debugger Output Logs or the error that you are getting? |
unfortunately i dont have access to that code anymore. i guess, this bug is already documented, right? we can close this issue then? |
Hey @karthiknadig, this issue might need further attention. @slavanorm, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
The most important part of this issue is documented in another one. This is closed as duplicate |
Hello. Thanks for your work.
I experienced this bug when i had some customization for "debug tests" configuration in launch.json file.
Debug works, using customized cwd in launch.json, while it fails not finding cwd related imports when I click rerun.
After looking into project configuration, I should apologize in advance if this issue doesnt belong here,
as my launch.json uses type:python instead of recommended type:debugpy.
unfortunately, the same code is not capable to debug with debugpy at all.
maybe it requires different issue created?
Project organization:
root/
pyproject.toml (this should configure rootdir for pytest. it fails on rerun.)
src/
...
tests/
...
launch.json:
versions:
python debugger extension: v2024.6.0
pytest:8.2.0
vscode:
Version: 1.88.1 (user setup)
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:41:02.734Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.19045
WSL on Win10
The text was updated successfully, but these errors were encountered: