ubuntu12.10下Qtcreator编写c/c++程序无法调试的解决办法

来源:互联网 发布:tpshop多用户商城源码 编辑:程序博客网 时间:2024/06/03 17:32

ubuntu12.10(64bit)下使用Qt Creator 2.5.82 (2.6.0-beta)编写c/c++程序,在调试的时候出现如下的问题:

ptrace: Operation not permitted.Could not attach to the process. Make sure no other debugger traces this process.Check the settings of/proc/sys/kernel/yama/ptrace_scopeFor more details, see /etc/sysctl.d/10-ptrace.conf
解决办法是在终端输入:sudo gedit /etc/sysctl.d/10-ptrace.conf 

把其中的kernel.yama.ptrace_scope = 1 改为 kernel.yama.ptrace_scope = 0

然后重启即可。


原创粉丝点击