ROGueENEMY/notes/vscode_debug.md
2023-12-13 14:34:17 +01:00

264 B

Debug sudo application with vscode

  1. create /home/gamer/gdb with following content:
sudo /usr/bin/gdb "$@"
  1. add this line to /etc/sudoers
gamer ALL=(ALL) NOPASSWD:/usr/bin/gdb

then copy the launch.json in this folder into .vscode folder