Debug Qt application on ubuntu with root permission using qt creator

Arun Kumar K S

It is possible to run my application with root priviliges using sudo, like this:

sudo ./MyApp

Is it possible to debug my Qt application using root priviliges using QtCreator? How can I do this on an Ubuntu system?

Arun Kumar K S

I solved it by starting Qt Creator as root.

sudo /usr/bin/qtcreator

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Qt Creator - debug application with input from file

From Dev

Build Qt application for Linux in Windows using Qt Creator

From Dev

Build Qt application for Linux in Windows using Qt Creator

From Dev

Setup of Qt Creator to debug into Qt classes

From Dev

Execute project in Qt Creator as root

From Dev

How to properly package an Ubuntu Touch application with Qt Creator (Ubuntu SDK)

From Dev

How to properly package an Ubuntu Touch application with Qt Creator (Ubuntu SDK)

From Dev

How to do a remote debug using GDB from Qt Creator?

From Dev

Qt Creator hangs in Ubuntu Virtualbox

From Dev

Qt Creator not working on Ubuntu 18.04

From Dev

Qt creator throws permission error on project (files owned by me) within directory of root

From Dev

Using Intel Vtune to profile Application from Qt Creator

From Dev

Qt creator debug mode is really slow

From Dev

Qt creator gdb remote debugging with debug helpers

From Dev

Can't debug in QT creator with cmake project

From Dev

Quick Debug Infos in CDB with Qt Creator

From Dev

Using the Kinect from Qt Creator

From Dev

Using Magick++ in Qt Creator

From Dev

Can't install Qt Creator on root partition

From Dev

QT Application on Ubuntu 14.04

From Dev

How to compile a simple OpenCL application with Qt Creator?

From Dev

How to compile a simple OpenCL application with Qt Creator?

From Dev

QGIS with standalone C++ application in Qt Creator

From Dev

Qt Console Application missing in New Project wizard in Qt Creator

From Dev

How to play a local video in a Qt Widgets Application, in Qt creator?

From Dev

In Qt Creator, where are the user snippets located in Ubuntu?

From Dev

Why is the Qt Creator Ubuntu Publish Screen Empty?

From Dev

Difference between Qt Creator and Ubuntu SDK?

From Dev

Use Python on Qt Creator in Ubuntu Environment

Related Related

  1. 1

    Qt Creator - debug application with input from file

  2. 2

    Build Qt application for Linux in Windows using Qt Creator

  3. 3

    Build Qt application for Linux in Windows using Qt Creator

  4. 4

    Setup of Qt Creator to debug into Qt classes

  5. 5

    Execute project in Qt Creator as root

  6. 6

    How to properly package an Ubuntu Touch application with Qt Creator (Ubuntu SDK)

  7. 7

    How to properly package an Ubuntu Touch application with Qt Creator (Ubuntu SDK)

  8. 8

    How to do a remote debug using GDB from Qt Creator?

  9. 9

    Qt Creator hangs in Ubuntu Virtualbox

  10. 10

    Qt Creator not working on Ubuntu 18.04

  11. 11

    Qt creator throws permission error on project (files owned by me) within directory of root

  12. 12

    Using Intel Vtune to profile Application from Qt Creator

  13. 13

    Qt creator debug mode is really slow

  14. 14

    Qt creator gdb remote debugging with debug helpers

  15. 15

    Can't debug in QT creator with cmake project

  16. 16

    Quick Debug Infos in CDB with Qt Creator

  17. 17

    Using the Kinect from Qt Creator

  18. 18

    Using Magick++ in Qt Creator

  19. 19

    Can't install Qt Creator on root partition

  20. 20

    QT Application on Ubuntu 14.04

  21. 21

    How to compile a simple OpenCL application with Qt Creator?

  22. 22

    How to compile a simple OpenCL application with Qt Creator?

  23. 23

    QGIS with standalone C++ application in Qt Creator

  24. 24

    Qt Console Application missing in New Project wizard in Qt Creator

  25. 25

    How to play a local video in a Qt Widgets Application, in Qt creator?

  26. 26

    In Qt Creator, where are the user snippets located in Ubuntu?

  27. 27

    Why is the Qt Creator Ubuntu Publish Screen Empty?

  28. 28

    Difference between Qt Creator and Ubuntu SDK?

  29. 29

    Use Python on Qt Creator in Ubuntu Environment

HotTag

Archive