From 18a691314f1f0c3374633e0805d826bf39d91dea Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Mon, 20 Sep 2021 20:48:41 +0300 Subject: [PATCH] Add a script permitting 'sudo' debugging in VSCode --- examples/proc_mem/sudo_gdb.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 examples/proc_mem/sudo_gdb.sh diff --git a/examples/proc_mem/sudo_gdb.sh b/examples/proc_mem/sudo_gdb.sh new file mode 100755 index 0000000..359a187 --- /dev/null +++ b/examples/proc_mem/sudo_gdb.sh @@ -0,0 +1,3 @@ +# The file is used for VSCode debugging ability. Use it as following: +# "miDebuggerPath": "/home/user/ELFIO/proc_mem/sudo_gdb.sh" +sudo /usr/bin/gdb "$@"