如何在 Raspbian Jessie 上以 root 身份在 Geany 中调试应用程序

How to debug application as root in Geany on Raspbian Jessie

在 Raspberry Pi 上安装了 Geany 并添加了调试器插件后,我需要调试器以 root 身份 运行 应用程序,因为我正在访问 [=17= 上的 GPIO 库和引脚].

我通常运行程序使用sudo ./programName

我在调试设置中找不到为调试目标添加 sudo 前缀的选项。

尝试 运行 geany 与 sudo geany