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
阅读(2260) | 评论(0) | 转发(0) |