Debug error in qtcreator

I generally use eclipse in my ubuntu box. This afternoon i decided to use qtcreator for a change. Found a annoying bug in qdebug for console application , which is due to some security changes in ubuntu .

Here is the 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

Solution :

1. Open command line and move to this folder

cd /etc/sysctl.d/
2. Edit this file

sudo nano 10-ptrace.conf
3. change the value of
kernel.yama.ptrace_scope = 0

Thats it 🙂