The file `setup.py` imports from `distutils.extension`, which no longer exists in Python 3.12: https://github.com/fabioz/PyDev.Debugger/blob/2cf10e3fb2ace33b6ef36d66332c82b62815e856/setup.py#L26 It should be sufficient to replace this with `from setuptools import Extension`.
The file
setup.pyimports fromdistutils.extension, which no longer exists in Python 3.12:PyDev.Debugger/setup.py
Line 26 in 2cf10e3
It should be sufficient to replace this with
from setuptools import Extension.