-
Notifications
You must be signed in to change notification settings - Fork 67
"timed out waiting for debuggee to spawn" when using venv with debugger #1991
Comments
This is a dup of #1930. We already have a fix for this, but the version of ptvsd with the fix hasn't shipped yet. In the meantime, you can work around this by copying python.exe from your global Python installation into the venv Scripts folder, replacing the stub that is already there. Alternatively, you can opt out of ptvsd 5 by disabling Python -> Experiments: Enabled in VSCode settings. |
Disable settings anything Python "Experiments: Enabled in VSCode" works for me |
I am having this issue when using the Remote-SSH extension. I am remoted into a server, trying to use debugger. My virtual env is a conda env if that matters. I disabled Python Experiments Enabled and this did not resolve my issue. |
@alexdauenhauer Can you please file a separate bug, and describe your environment, repro steps, and the outcome in more detail? We have fixed the original root cause, so it's likely something else that will need to be investigated separately. |
Hello @int19h ! Sorry to bother, but I am just trying to change form Spyder to VS and I was checking out potential things to try to solve the same issue, however I am quite new to python and i could not follow your explanation of: Thanks! |
@DTKx It was a workaround for a specific issue that we have since fixed; you don't need to follow it if you have the most recent version of Python extension for VSCode. If you're seeing the "timed out" error message in the most recent version, can you please file a separate issue, and describe your symptoms in more detail? |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977):Expected behaviour
HelloWorld.py should run and print "Hello" to terminal when running Debugger
Actual behaviour
Pop-up window appears stating "Session-1 timed out waiting for debuggee to spawn"
Steps to reproduce:
Steps to create error:
The following do work however and do not produce an error:
A. Running with Debugger using system Python 3.7.5 (i.e., not using venv)
B. Running without Debugger using venv (by clicking green triangle in upper-right corner of VS Code window). The output for this is shown below:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: