microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.96k stars 29.18k forks source link

Debbuger is not connecting. #154466

Closed sebor255 closed 2 years ago

sebor255 commented 2 years ago

Issue Type: Bug

Description: I am unable to run python file with debugger. It used to work well. Now, right after click on "Debug Python File" something blinks (like the debugger is connected for a short time - less than 1s) and the debugger is not connected.

Version: Version: 1.69.0 (user setup) Commit: 92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9 Date: 2022-07-07T05:28:36.503Z Electron: 18.3.5 Chromium: 100.0.4896.160 Node.js: 16.13.2 V8: 10.0.139.17-electron.0 OS: Windows_NT x64 10.0.19044

Python InteliSense: v2022.10.0

Steps to reproduce:

Expected:

VS Code version: Code 1.69.0 (92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9, 2022-07-07T05:28:36.503Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) E-2286M CPU @ 2.40GHz (16 x 2400)| |GPU Status|2d_canvas: enabled
canvas_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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.75GB (19.09GB free)| |Process Argv|--crash-reporter-id a249d2b6-43a3-4a39-9bfe-fdc7b46bb25d| |Screen Reader|no| |VM|0%|
Extensions (36) Extension|Author (truncated)|Version ---|---|--- c-cpp-compile-run|dan|1.0.15 jenkins-runner|dav|1.3.0 githistory|don|0.6.19 xml|Dot|2.5.1 sync-scroll|dqi|1.3.0 gitlens|eam|12.1.1 markdown-table-formatter|fcr|2.2.4 nicegaugetables|fra|1.4.0 gauge|get|0.1.0 reg|ion|1.1.0 jenkinsfile-support|ivo|1.1.0 jenkins-pipeline-linter-connector|jan|1.2.0 code-groovy|mar|0.1.2 prettify-json|moh|0.0.3 python|ms-|2022.10.0 vscode-pylance|ms-|2022.7.20 jupyter|ms-|2022.6.1001902341 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.8 cpptools|ms-|1.11.1 powershell|ms-|2022.6.3 vscode-groovy-lint|Nic|1.9.0 java|red|1.8.0 vscode-commons|red|0.0.6 vscode-xml|red|0.21.2022062916 vscode-qt-for-python|sea|1.1.7 sourcery|sou|0.12.1 jenkins-jack|tab|1.2.1 md-contents|the|1.2.3 vscodeintellicode|Vis|1.2.22 vscode-java-debug|vsc|0.42.0 vscode-java-dependency|vsc|0.20.0 vscode-java-pack|vsc|0.24.0 vscode-java-test|vsc|0.35.2 vscode-maven|vsc|0.36.0 asn1|wil|0.5.3
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonvspyt551cf:30345471 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 vsclangdc:30486549 ```
m-rm commented 2 years ago

I had the same issue after updating to 1.69.0. To get it working again switch the Python extension from the release version (v2022.10.0) to the pre-release version (v2022.11.11891004).

weinand commented 2 years ago

/extPython

vscodenpa commented 2 years ago

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!