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

13 lines
No EOL
264 B
Markdown

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