microsoft / debugpy

An implementation of the Debug Adapter Protocol for Python
https://pypi.org/project/debugpy/
Other
1.75k stars 128 forks source link

Importing pypinyin takes too much time (around 10min) #1616

Open LifeJustDLC opened 2 weeks ago

LifeJustDLC commented 2 weeks ago

Importing pypinyin takes a long time (about 10 minutes) when starting the debugger in vscode, with slightly high CPU usage (20%).

It works fine with python ./script.py and import in REPL. Not sure if it's the vscode debugger's problem, anyway, issues have been filed on both sides.

Tested on mac and it works fine, the problem only occurs on windows.

(I suspected conda and venv, but it's still the same after removing them)

python: 3.10~3.12 windows 10 vscode python debugger 2024.6.0 pypinyin 0.51.0

karthiknadig commented 1 week ago

This should be investigated in debugpy. Moving this to debugpy.