Repository navigation
debug test is hanging #3869
Description
Activity
- ghost addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 4, 2019 - ghost removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 7, 2019 If you can replicate with a simpler test then let us know and we can re-open this issue. Otherwise it sounds like the connection itself is timing out which often happens if the setup time of your test takes a long time and the debugger can't attach in time (which has been known to happen under
conda). If you want you can try to provide more info about how it is hanging and we can see if there's something obvious.jruizaranguren commented
on Jan 9, 2019 AuthorMore actionsIs there any way to increase the timeout so I can confirm the issue?
jruizaranguren commented
on Jan 9, 2019 AuthorMore actionsI have reproduced the issue and upload the required files to this repo.
Steps to reproduce
> create conda environment from file: conda env create -f issue3869_env.yml > source activate issue3869 > code .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.
Reacted by Javier Barbadillojruizaranguren (@jruizaranguren) thanks for the reproducer. We will give it a try and get back to you.
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-teamand removed
on Jan 10, 2019 20 remaining items
This behavior no longer appears to reproduce after the recent upgrade:
Code Version 1.33.1 (1.33.1) Python Extension: 2019.4.12954However it seems to have been replaced with issue 5540.
I may add some clarification too with debug behavior I witnessed in the past. Whenever I made a python syntax error if I attempted to run the debugger it would hang indefinitely and I'd have to force kill the debug session. I would then often invoke
Start without debuggingto shake out any syntax errors before reattempting a debug session. I'd also invoke my scripts to trigger them to print their help messages to ensure syntax errors didn't slip through. There was a certain reproducible behavior around syntax errors and hanging the debugger. I haven't seen it recently however.jruizaranguren commented
on Aug 12, 2019 AuthorMore actionsI'm experiencing the same issue with last versions:
Code Version: 1.36.1
Python Extension: 2019.8.29288
Anaconda Extension Pack: 1.0.1Any hint? Is it just with complex environments?
I am experiencing same issue with last versions too.
Code Version: 1.38.0
I have the same problem. If I click on debug test, then running test message appear at the bottom, and after a second, no tests ran. No debug running works.
Code Version: 1.39.1
Python Version: Python 3.6.9 :: Anaconda, Inc.Marty (@marsmith) the second issue you mentioned is this one: microsoft/vscode#82629. It needs to be fixed in VS Code.
For the others in this thread, I believe these issues may be conda issues. Which version of conda are you using?
Hi digger, would you mind filing a separate issue with repro steps and any screenshots that may seem relevant? I think this may be happening for a different reason, as we started using a new debugger. Thanks! 😊
This issue seems to be stale, so I'm closing it. If anyone still has any issues please do file a separate bug report! Thank you :)
- locked as resolved and limited conversation to collaborators
on Sep 30, 2021


Environment data
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
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Output from
Consoleunder theDeveloper Toolspanel (toggle Developer Tools on underHelp; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging)