-
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
Python test debugging is not working #11427
Comments
Can you please provide more information about the issue? In particular, the repro steps - including your launch.json, and, if possible the code that you're trying to debug. Also, please make sure that you're running debugpy. |
I am not using a launch.json, just the built in test runner. @int19h I installed debugpy from vsix (your link) to no avail. No breakpoints or exceptions are being caught when I click debug, even though debug text is displayed in the debug console |
@int19h I created a launch file:
My
|
If you're running the code using "Debug Test" in the editor or in Test Explorer, the configuration needs to be It doesn't look like that's important here, though - I was just wondering if there's anything unusual in the config. Running without one should work. Where is test_this.py located? The most common reason why breakpoints aren't being hit is because "justMyCode" setting is enabled in debug configuration (it's on by default), and the source file is in a location that debugger considers as Python stdlib - e.g. anywhere inside the folder where Python is installed, or inside a virtual environment. |
@int19h this seems to be the error,
Those arguments together are causing the debugger to not raise breakpoints or catch exceptions. |
Ohh, |
Environment data
Expected behaviour
starting debugging
Actual behaviour
as #7927, the debugging tool bar disappeared
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
same as #7927
The text was updated successfully, but these errors were encountered: