microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.31k stars 1.18k forks source link

Python remote SSH debugging #21646

Open rvavrik opened 1 year ago

rvavrik commented 1 year ago

Type: Bug

Connect to a Linux host machine using Remote-SSH extension. Start debugging of any python script, e.g. hello world. Debugging session should start, but it does not provide any output or error and ends immediatelly. I've tried to use pre-release and also some older versions of the Python extension (e.g. last 2021.*) but with no effect on the issue.

Extension version: 2023.13.11981008 VS Code version: Code 1.79.2 (Universal) (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:58:52.392Z) OS version: Darwin arm64 22.4.0 Modes: Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64 Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64 Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64 Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64 Remote OS version: Linux x64 5.14.21-150400.24.46_12.0.73-cray_shasta_c Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64 Remote OS version: Linux x64 3.10.0-1160.90.1.el7.x86_64

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
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)|2, 2, 2| |Memory (System)|16.00GB (0.07GB free)| |Process Argv|--crash-reporter-id f7ad2744-d944-4744-b400-7e63b79233a4| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: karolina| |OS|Linux x64 3.10.0-1160.90.1.el7.x86_64| |CPUs|AMD EPYC 7452 32-Core Processor (64 x 2345)| |Memory (System)|251.34GB (134.49GB free)| |VM|0%| |Item|Value| |---|---| |Remote|SSH: karolina| |OS|Linux x64 3.10.0-1160.90.1.el7.x86_64| |CPUs|AMD EPYC 7452 32-Core Processor (64 x 2345)| |Memory (System)|251.34GB (134.48GB free)| |VM|0%| |Item|Value| |---|---| |Remote|SSH: karolina3| |OS|Linux x64 3.10.0-1160.90.1.el7.x86_64| |CPUs|AMD EPYC 7452 32-Core Processor (64 x 2345)| |Memory (System)|251.34GB (149.56GB free)| |VM|0%| |Item|Value| |---|---| |Remote|SSH: karolina3| |OS|Linux x64 3.10.0-1160.90.1.el7.x86_64| |CPUs|AMD EPYC 7452 32-Core Processor (64 x 2345)| |Memory (System)|251.34GB (149.56GB free)| |VM|0%| |Item|Value| |---|---| |Remote|SSH: lumi| |OS|Linux x64 5.14.21-150400.24.46_12.0.73-cray_shasta_c| |CPUs|AMD EPYC 7742 64-Core Processor (256 x 2250)| |Memory (System)|1007.09GB (861.41GB free)| |VM|0%| |Item|Value| |---|---| |Remote|SSH: karolina| |OS|Linux x64 3.10.0-1160.90.1.el7.x86_64| |CPUs|AMD EPYC 7452 32-Core Processor (64 x 2345)| |Memory (System)|251.34GB (134.48GB free)| |VM|0%| |Item|Value| |---|---| |Remote|SSH: karolina3| |OS|Linux x64 3.10.0-1160.90.1.el7.x86_64| |CPUs|AMD EPYC 7452 32-Core Processor (64 x 2345)| |Memory (System)|251.34GB (149.56GB free)| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30789496 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 hideindicator:30785051 pythongtdpath:30769146 i26e3531:30780429 pythonnosmt12:30779714 pythonidxpt:30784022 pythonnocebcf:30776496 h7j2d465:30786200 dsvsc013:30789517 ```
rvavrik commented 1 year ago

I think the problem might be related with this issue https://stackoverflow.com/questions/75953556/vs-code-cannot-find-python-libpython3-10-so , but killing the vscode-server processes didn't help in my case.