It is possible to run my application with root priviliges using
sudo, like this:
Is it possible to debug my Qt application using root priviliges using QtCreator? How can I do this on an Ubuntu system?
I solved it by starting Qt Creator as root.
Now It will get the root permission to the application when I compile and debug. Now its possible to debug my application with root privilege.