gdb调试进程出现Could not attach to process. sudo vi /etc/sysctl.d/10-prtace.conf 修改:kernel.yama.ptrace_scope = 0 执行:service procps restart
"name":"attach to process", "type": "go", "request": "attach", "mode": "local", "processId": 30834, "trace":"log" i get an errorCould not attach to pid:30834 this could be caused by a kernel security setting, try writing "0" to /proc/sys/kernel/yama/ptrace_scope Steps to...