Apologies if this is the wrong repo to report this in, but I am running into an issue where the Python debugger in VS Code consistently crashes with WinError 10054 when debugging certain code.
Steps to reproduce
- Install the attached environment file
- Set the VS Code Interpreter to the newly created environment (Ctrl+Shift+P -> Python: Select Interpreter)
- Create a new file with the following code:
import numpy as np
np.cov(np.random.random(size=(50,41)),rowvar=False)
print('hello, world!')
4). Attempt to debug the file (Run and Debug side panel -> ▷ Python Debugger: Current File)
Expected behaviour
The script prints "hello, world!"
Actual behaviour
The script exits silently
Additional info
If you place a break point on or before line 3, the debugger runs up to the break point. The debugger exits silently if you attempt to continue past/step over line 3. If you highlight line 3, right-click, and select "Evaluate in Debug Console", the following error message is printed to the debug console:
[WinError 10054] An existing connection was forcibly closed by the remote host
This is not a stochastic error. It happens every time. It is not an issue with the script itself, nor the conda environment, as when I run it from the command prompt (outside of VS Code) it runs fine.
Environment info:
VS Code Version: 1.107.1 (user setup)
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.19045
Python extension version: 2025.20.1
Python Debugger extension version: 2025.18.0
Python Environments extension version 1.14.0
Pylance extension version: 2025.10.4
Python version: 3.12.12
conda version: 24.7.1
Hopefully that's all the relevant info. If you need any more information please let me know. Or if I should report this elsewhere please let me know which repo would be most appropriate.
Apologies if this is the wrong repo to report this in, but I am running into an issue where the Python debugger in VS Code consistently crashes with WinError 10054 when debugging certain code.
Steps to reproduce
4). Attempt to debug the file (Run and Debug side panel -> ▷ Python Debugger: Current File)
Expected behaviour
The script prints "hello, world!"
Actual behaviour
The script exits silently
Additional info
If you place a break point on or before line 3, the debugger runs up to the break point. The debugger exits silently if you attempt to continue past/step over line 3. If you highlight line 3, right-click, and select "Evaluate in Debug Console", the following error message is printed to the debug console:
[WinError 10054] An existing connection was forcibly closed by the remote hostThis is not a stochastic error. It happens every time. It is not an issue with the script itself, nor the conda environment, as when I run it from the command prompt (outside of VS Code) it runs fine.
Environment info:
VS Code Version: 1.107.1 (user setup)
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.19045
Python extension version: 2025.20.1
Python Debugger extension version: 2025.18.0
Python Environments extension version 1.14.0
Pylance extension version: 2025.10.4
Python version: 3.12.12
conda version: 24.7.1
Hopefully that's all the relevant info. If you need any more information please let me know. Or if I should report this elsewhere please let me know which repo would be most appropriate.