您的位置:首页 > 编程语言 > C语言/C++

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

2013-12-18 10:39 726 查看
ubuntu12.10(64bit)下使用Qt Creator 5.1.1编写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_scope
For 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

然后重启。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐