Strace and gdb cannot attach to running processes

Hi,

We have SLES 12SP3 LTSS, and as part of the maintenance of some applications built for this platform we need to use strace -p or gdb to attach to running processes owned by us. When we used those applications to attach to a running process, the system sends a PTRACE error and the application is stopped. Under Ubuntu there is a kernel parameter to prevent this issue from happening, but in SLES I couldn’t find such parameter. If run as root that problem disappears, but we regard it’s a big risk to do software development as root. Is there a way to prevent this kernel restriction from happening?

Kind regards,

Oscar