codeblocks开发需要root权限的linux程序

问题描述:

最想在ubuntu下开发一个小程序,编译器用的是codeblocks,在是这个程序需要root权限,
我想要调试,而不是直接在终端sudo执行,有什么办法

用root权限运行codeblocks,然后再启动调试