PyDev.Debugger icon indicating copy to clipboard operation
PyDev.Debugger copied to clipboard

Can't attach debugger on native arm64 macOS machines

Open CCP-Lease opened this issue 3 years ago • 4 comments

Trying to attach a debugger on native arm64 macOS fails due to pydevd_tracing.py trying to load the x86_64 version of the attach dylib.

I get the following error:

Traceback (most recent call last):
  File "pydevd_tracing.py", line 145, in load_python_helper_lib
    lib = ctypes.pydll.LoadLibrary(filename)
  File "ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(pydevd_attach_to_process/attach_x86_64.dylib, 6): no suitable image found.  Did find:
	pydevd_attach_to_process/attach_x86_64.dylib: mach-o, but wrong architecture

CCP-Lease avatar Jul 07 '21 16:07 CCP-Lease

It works for me now on an Apple silicon Mac with PyCharm. This might be closed.

gy-mate avatar Jan 22 '24 20:01 gy-mate

@fabioz or @CCP-Lease: could you please close this issue?

gy-mate avatar Feb 13 '24 16:02 gy-mate

It seems to be fixed in the pycharm fork, but it's still not upstream yet...

fabioz avatar Feb 13 '24 17:02 fabioz

@fabioz Oh, I see, thanks!

gy-mate avatar Feb 13 '24 17:02 gy-mate