PyDev.Debugger
PyDev.Debugger copied to clipboard
Attach to local process doesn't work on Ubuntu 18.04
Hi Fabio! Our users are experiencing problems with "Attach to process" action on Ubuntu 18.04:
/usr/bin/python3.6 /home/ronen-a/.local/share/JetBrains/Toolbox/apps/PyCharm-C/ch-0/181.4668.75/helpers/pydev/pydevd_attach_to_process/attach_pydevd.py --port 42219 --pid 10134
Process finished with exit code 0
Server stopped.
Original user report: https://youtrack.jetbrains.com/issue/PY-30064 Did you face the same problem in PyDev and VSCode? Do you have any ideas what might be the reason of the problem?
There was one recent fix in the area: https://github.com/fabioz/PyDev.Debugger/commit/0448edeb49b830d103edc9fa728643bee25566d1 do you have that patch applied?
No, I missed it, but we'll try it. Thank you!
Hi! Unfortunately, this commit doesn't fix the issue.
In addition to applying the patch I also hat to set kernel.yama.ptrace_scope = 0
(was 1), either permanently in /etc/sysctl.d/10-ptrace.conf
or temporarily through echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
.