问题描述:
在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
参考资料: