Created
June 8, 2022 10:33
-
-
Save leogr/8f34e86e6c10a74de835b8cf7db47b08 to your computer and use it in GitHub Desktop.
Debug Falco with sudo gdb in VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdbsudo) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/build/userspace/falco/falco", | |
"args": [ | |
"-r", | |
"rules/falco_rules.yaml", | |
"-o" | |
], | |
"stopAtEntry": true, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": false, | |
"MIMode": "gdb", | |
"miDebuggerPath": "/usr/bin/gdbsudo", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
], | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can find
gdbsudo
here 👉 https://gist.github.com/leogr/36dd0c03ee6ad82412b64d965108f993