vscode-python: debug test is hanging
Environment data
- VS Code version: 1.30.1
- Extension version (available under the Extensions sidebar): 2018.12.1
- OS and version: Ubuntu 16.04
- Python version (& distribution if applicable, e.g. Anaconda): anaconda Python 3.6.7 64 bit
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Relevant/affected Python packages and their versions: pytest 3.9.3
Expected behaviour
After setting a breakpoint in single test, when clicking “Debug Test” above the test, it should stop at the breakpoint.
Actual behaviour
VS Code launches the debugging tool bar and it hangs there. Run Test works properly.
Steps to reproduce:
Simply try to debug test in the described environment with pytest.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Nothing is shown.
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging
)
Nothing is written when clicking debug in developer tools console.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 19 (6 by maintainers)
I’m also facing this problem with one of my projects. Impossible to start test debugging.
I’m working on Linux too and can reproduce the issue with @jruizaranguren environment.
I have reproduced the issue and upload the required files to this repo.
Steps to reproduce
Then, set a breakpoint in test_debugging.py::test_does_not_set_breakpoints.
Additional info
We reproduce the issue in vscode 1.30.1, but it works in versions 1.21.1 and 1.25.1.