Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1522865
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: C/C++

2014-09-28 23:16:22

os: ubuntu 12.04 x64
Qt 5.2.1 + QtCreator 3.0.1

设置断点,点击调试运行时报如下错误

“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”


解决方法:
 echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope 

参考链接:

http://developer.nokia.com/community/wiki/Qt_Creator_%E4%BD%BF%E7%94%A8%E6%8A%80%E5%B7%A7

阅读(2195) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~