264 B
264 B
Debug sudo application with vscode
- create /home/gamer/gdb with following content:
sudo /usr/bin/gdb "$@"
- add this line to /etc/sudoers
gamer ALL=(ALL) NOPASSWD:/usr/bin/gdb
then copy the launch.json in this folder into .vscode folder