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

相关文章:

  • 2022-02-25
  • 2021-08-15
  • 2021-06-12
  • 2022-12-23
  • 2021-12-09
  • 2021-06-01
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案