Skip to content

Instantly share code, notes, and snippets.

@leogr
Created June 8, 2022 10:33
Show Gist options
  • Save leogr/8f34e86e6c10a74de835b8cf7db47b08 to your computer and use it in GitHub Desktop.
Save leogr/8f34e86e6c10a74de835b8cf7db47b08 to your computer and use it in GitHub Desktop.
Debug Falco with sudo gdb in VSCode
{
// 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
}
],
}
]
}
@leogr
Copy link
Author

leogr commented Jun 8, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment