Having installed Geany on a Raspberry Pi and added the Debugger plugin, I need the debugger to run the application as root as I am accessing the GPIO libraries and pins on the Raspberry Pi.
I usually run the program using sudo ./programName
I cannot find an option in the debug settings to prefix the debug target with sudo.
Try running geany with sudo geany
.