Registered Member
|
I am writing an app that needs to be ran as root. How can I debug it without running KDevelop as root but only gdb?
|
Registered Member
|
Hi!
Be a bit more informative. Do all parts need to run as root (as Qt-GUI-Applications do not support running as root )? You can configure custom launches via «run → configure launches…» and create your custom gdb-command with it. I consider using pkexec to start it with appropriate permissions. Which language do you use? |
Registered Member
|
I am writing a c application to use some gpio ports with an Adafruit I plugged into my usb. Obviously this needs to be ran as root. But even this can be bypassed with proper udev rules, still it's some usefull knowledge. |
Registered Member
|
If you are running Raspbian/Ubuntu or use the sudo-package, you could try to use the visudo command to allow an exception for gdb, e.g.
I'd prefer the udev-method anyway. As a simple approach you can just give everyone on your machine read access to the device (chmod +r /dev/whatever/). |
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]