gdb as root in eclipse IDE

    1. 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
    2. Create or modify a debug configuration in  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
posted @ 2013-03-26 10:03  Bigben  阅读(536)  评论(0编辑  收藏  举报