Qt and Qt creator

In this page

  1. Error in debugging console from Qt creator
  2. Find qt version

1. Error in debugging console from Qt creator

There I am in the Qt creator IDE, unhappily trying to fin a bug in a simple program supposed to run in the console. I set some break points in the code and start the debug. Only to get this message:

To circunvent yet another paranoid (x)ubuntu restriction, you can disable it for the session with:

$ echo "0" | sudo tee /proc/sys/kernel/yama/ptrace_scope

Or you can edit /etc/sysctl.d/10-ptrace.conf and change the value of kernel.yama.ptrace_scope from 1 to 0 in order to make the changes permanent.

2. Find qt version

Two options to find the Qt version installed:

$ qmake --version                  # Installed version of qt - option 1
$ pkg-config --modversion QtCore   # Installed version of qt - option 2