[Lazarus] run program in ide with sudo for debug purpose

Martin lazarus at mfriebe.de
Sun Feb 26 13:49:08 CET 2012


On 26/02/2012 12:38, ik wrote:
> Hello,
>
> I'm trying to debug a program that I'm writing with Lazarus, and it
> require root privileges, but I do not want Lazarus to run as root,
> only the program itself for debug.
>
> How can I do that ?
>

I have not tried it, but maybe if you replace "/usr/bin/gdb" (in the IDE 
opions dialog) with "sudo /usr/bin/gdb" ?

Of course that affects all projects.

But afaik you can't use a starter app , because then gdb will attempt to 
debug the starter app....





More information about the Lazarus mailing list