Skip to content

Commit

Permalink
chore: improve vscode launch file for debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <[email protected]>
  • Loading branch information
alegrey91 committed May 24, 2024
1 parent 5605083 commit e95b585
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
"name": "Run as root",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"mode": "exec",
"program": "${workspaceFolder}/bin/harpoon",
"asRoot": true,
"console": "integratedTerminal",
"args": ["-fn", "<fuctionName>", "-co", "</path/to/command>"]
"args": ["capture",
"-f",
"<function_list,...>",
"/path/to/command",
"args"
]
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"files.associations": {
"functional": "c",
"type_traits": "c"
}
}

0 comments on commit e95b585

Please sign in to comment.