Closed eykamp closed 1 year ago
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.79.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
I tried with 1.79.2, and had the same problem. I read that other users had experienced the same thing I did so I downgraded. That did not fix the issue, sadly.
Did you try downgrading the Python extension?
Is there any way to increase the timeout to see if it's just that something is really slow to get going?
Interesting. I've been pressing a lot of buttons, so I'm not sure this is it, but it appears that the problem is only present when I'm running the local-user version of code; I can resolve the problem by installing and running non-user "standard" version.
Things are working for me now, so I'm going to close this, but maybe this will be helpful to someone else.
We have written the needed data into your clipboard because it was too large to send. Please paste. Type: Bug
Behaviour
Expected vs. Actual
I expect to be able to debug a python script, as I've done hundreds of times. Instead I get a dialog box "Timed out waiting for debuggee to spawn". I've seen this before (not recently), but it seemed to resolve itself at some point. I don't know enough about the internals to make an educated guess as to what might be happening, or why it happened in the past, or why it resolved itself then.
Steps to reproduce:
Start with a new editor window; create the following python program:
Save. Press F5 to start debugger. See a terminal pane open (or get focus). See the normal commands get printed. Wait about 15 seconds. See message. Cry out in frustration.
Running this script by pressing Ctrl-Alt-N works, so I know on some level Python is hooked up.
After reading some possibly related cases, I turned on logging and the following three files got created. I'm not sure they're all relevant, but they're here:
debugger.vscode_7e11d670-43a4-4fc7-ab29-42db71b69a6e.log:
debugpy.adapter-10228.log
debugpy.launcher-20740.log
Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)``` XXX ```
User Settings
``` languageServer: "Pylance" linting • flake8Args: ""
• flake8Enabled: true
formatting
• autopep8Args: ""
• provider: "black"
```
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: Yes
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (6 x 2592)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.76GB (19.02GB free)| |Process Argv|--crash-reporter-id e1e7d685-ffab-41ed-83b8-7d2c21f43013| |Screen Reader|no| |VM|0%|
Extensions (66)
Extension|Author (truncated)|Version ---|---|--- increment-selection|alb|0.2.0 Bookmarks|ale|13.3.1 arepl|alm|2.0.5 armview|ben|0.4.6 markdown-checkbox|bie|0.4.0 vscode-toggle-quotes|Bri|0.3.6 insert-unicode|bru|0.14.0 vscode-better-align|cho|1.4.2 vscode-sql-beautify|cla|0.3.19 rainbow-highlighter|cob|0.1.0 gitlens|eam|14.0.1 vs-code-xml-format|fab|0.1.5 vscode-diff|fab|1.4.2 vscode-open-in-github|fab|1.3.0 url-encode|fle|1.1.0 code-runner|for|0.12.0 todo-tree|Gru|0.0.226 timing|Haa|2.7.2 vscode-test-explorer|hbe|2.21.1 beautify|Hoo|1.5.0 rest-client|hum|0.25.1 vscode-peacock|joh|4.2.2 vscode-position|jtr|1.1.2 vscode-python-test-adapter|lit|0.7.1 MagicPython|mag|1.1.0 rainbow-csv|mec|3.7.0 git-graph|mhu|1.30.0 vscode-deploy-reloaded|mkl|0.89.0 csharp|ms-|1.26.0 vscode-dotnet-runtime|ms-|1.6.0 isort|ms-|2022.8.0 python|ms-|2023.8.0 vscode-pylance|ms-|2023.6.30 jupyter|ms-|2023.5.1101742258 jupyter-keymap|ms-|1.1.2 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 cpptools|ms-|1.16.2 remote-explorer|ms-|0.4.0 sublime-keybindings|ms-|4.0.10 test-adapter-converter|ms-|0.1.8 vscode-progressive-increment|nar|1.0.5 vetur|oct|0.37.3 indent-rainbow|ode|8.3.1 quicktype|qui|12.0.46 sqlite-viewer|qwt|0.2.5 vscode-data-preview|Ran|2.3.0 command-variable|rio|1.53.0 rubberduck-vscode|rub|1.15.0 partial-diff|ryu|1.4.3 text-marker|ryu|1.11.0 multi-command|ryu|1.6.0 incremental-search|sie|0.2.1 vscode-fileutils|sle|3.10.1 rewrap|stk|1.16.3 mako|tom|0.2.0 pdf|tom|1.2.2 selectline-statusbar|tom|0.0.2 sort-lines|Tyr|1.10.1 gistfs|vsl|0.4.1 debug|web|0.26.1 cursor-align|yo1|1.1.0 multi-cursor-search|yo1|2.1.0 markdown-all-in-one|yzh|3.5.1A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30773604 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyonecf:30548226 vsccc:30610678 2e4cg342:30602488 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 pythongtdpath:30769146 dh2dc718:30770000 pythonidxptcf:30772540 pythondjangots:30772535 ```