[Interest] Debugging as root.

Thiago Macieira thiago.macieira at intel.com
Thu Feb 14 03:54:12 CET 2013

On quarta-feira, 13 de fevereiro de 2013 19.22.07, Jason Cipriani wrote:
> I'm developing an application in Qt Creator that needs to be run as root.
> I'd rather not run Qt Creator itself as root. Can I configure Qt Creator to
> run the application as root when I press the run button?

You may be able to tell Creator that your debugger isn't "gdb", but a wrapper 
program that is setuid root and execs gdb.

Or to use Creator's remote debugging ability to connect to a running gdbserver 
that you started as root. This is probably the most likely to succeed (Debug > 
Start Debugging > Attach to Remote Debug Server).

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130213/3b27101d/attachment.sig>

More information about the Interest mailing list