Qt Creator, ptrace: Operation not permitted. What is the permanent solution?
问题 While debugging C++ code in Qt creator I get the following error 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 Here a temporary solution is found: Receiving error while trying to debug in QtProject temporary solution (won't survive a reboot): echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope But it is difficult to