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

Attach to local process doesn't work on Ubuntu 18.04

Open Elizaveta239 opened this issue 5 years ago • 4 comments

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?

Elizaveta239 avatar Sep 18 '18 12:09 Elizaveta239

There was one recent fix in the area: https://github.com/fabioz/PyDev.Debugger/commit/0448edeb49b830d103edc9fa728643bee25566d1 do you have that patch applied?

fabioz avatar Sep 18 '18 12:09 fabioz

No, I missed it, but we'll try it. Thank you!

Elizaveta239 avatar Sep 18 '18 12:09 Elizaveta239

Hi! Unfortunately, this commit doesn't fix the issue.

Elizaveta239 avatar Oct 19 '18 12:10 Elizaveta239

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.

sesceu avatar Nov 20 '18 15:11 sesceu