-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Labels
Description
I'm trying to attach a Python debugger to a process using the debugpy module, but I'm getting the following error:
Unable to attach to process in arch: aarch64 (did not find attach_aarch64.so in /usr/local/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process).
E+00000.011: Code injection into PID=7 failed:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/debugpy/server/cli.py", line 391, in attach_to_pid
add_code_to_python_process.run_python_code(
File "/usr/local/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 400, in run_python_code_linux
raise RuntimeError('Could not find .so for attach to process.')
RuntimeError: Could not find .so for attach to process.
The command I'm running is:
python3 -m debugpy --listen 0.0.0.0:5678 --pid 7
I'm not sure what could be causing this error or how to fix it. Any help would be greatly appreciated.
Environment
debugpy: v1.6.6
Host OS: Ventura 13.1
Docker: v23.0.1
Python: v3.8.12
Actual Behavior
See description
Expected Behavior
The command injects a debugger into the process.
Steps to Reproduce
- Start a Python Docker container on an ARM Apple Silicon computer.
- Run
python3 -m debugpy --listen 0.0.0.0:5678 --pid <pid>inside container.
Reactions are currently unavailable