ubuntu11+ eclipse不能附加进程调试的解决方法

来源:互联网 发布:mysql 多条select语句 编辑:程序博客网 时间:2024/06/06 03:34
You can temporarily disable this restriction (and revert to the old behaviour allowing your user to ptrace (gdb) any of their other processes) by doing:


echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
To permanently allow it edit /etc/sysctl.d/10-ptrace.conf and change the line:


kernel.yama.ptrace_scope = 1
To read


kernel.yama.ptrace_scope = 0

For some background on why this change was made, see the Ubuntu wiki


-----------

以上解决方法是从别的地方复制来的,至于出处我已经忘记了!!!

0 0
原创粉丝点击