红联Linux门户
Linux帮助

linux下qtcreator进行start debugging发生错误

发布时间:2016-10-28 15:02:38来源:linux网站作者:jasonliu1919
问题描述:
在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
 
参考资料:
linux下qtcreator进行start debugging发生错误
 
本文永久更新地址:http://www.linuxdiyf.com/linux/25480.html