您的位置:首页 > 编程语言 > Java开发

gdb as root in eclipse IDE

2013-03-26 10:03 381 查看
Enable your user to run gdb as root without beeing asked for any password:
sudo visudo

Add the following line after all other rules:
<youruser> ALL=(root) NOPASSWD:/usr/bin/gdb


Create or modify a debug configuration in eclipse to run gdb as root
e.g. in Run > Debug Configurations > C/C++ Application > YourProject Debug:
change Debugger > Main > GDB debugger from
gdb
to
sudo gdb
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: