You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"One or more errors occurred" error pops up when attach a running python.exe. #8625
Environment
Build of Visual Studio: 18.12.0 Canary [12218.276.main]
Build of Python Package: 18.0.26263.1
Version of Pylance: 2026.3.104
OS version: Windows 11 Enterprise, version 25H2
Steps to Reproduce
Launch VS and create new python application
Type the code as following or the code you are desiring
from math import cos, radians
# Create a string with spaces proportional to a cosine of x in degrees
def make_dot_string(x):
rad = radians(x) # cos works with radians
numspaces = int(20 * cos(radians(x)) + 20) # scale to 0-40 spaces
st = ' ' * numspaces + 'o' # place 'o' after the spaces
return st
def main():
for i in range(0, 1800, 12):
s = make_dot_string(i)
print(s)
main()
Add an input('>') at the top of your code
Add some more python code after that with breakpoint(s)
Start WITHOUT debugging a. Console will wait for you to input something
Debug > Attach to Process, select the appropriate python.exe
Observes
Expected behavior
It stops at the breakpoint
Additional context and screenshots
"One or more errors occurred" error pops up
Activity
rchiodo commentedon Sep 21, 2026
The python app crashed, the popup is expected. Not sure what caused the python app to crash though. Does it crash without attaching a debugger?
linette-zyy commentedon Sep 22, 2026
Rich Chiodo (@rchiodo)

It doesn't cash without attaching a debugger and it also doesn't cash when attach remote debug.
StellaHuang95 commentedon Oct 13, 2026
linette-zyy Please try with Python 3.10 or higher again.
linette-zyy commentedon Oct 15, 2026
Stella Huang (@StellaHuang95) This issue also repro on Python3.10 or higher.
