linux下qtcreator进行start debugging发生错误

问题描述:

在linux下利用qtcreator进行debug时候:

点击start debugging进行调试运行时产生如下的报错信息:

“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://stackoverflow.com/questions/22120711/qt-creator-ptrace-operation-not-permitted-what-is-the-permanent-solution

你可能感兴趣的:(linux,QtCreator)