Skip to content

Commit

Permalink
Add debugger config (#239)
Browse files Browse the repository at this point in the history
Add VS Code launch config. ~/mycontainer is its mount location.
  • Loading branch information
foodprocessor authored Jun 11, 2024
1 parent 6c2e66c commit b96417d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.idea/
.vscode/
.vscode/settings.json
*.out
config*.yaml
testcnf.yaml
Expand Down
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// 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": "Debug CloudFuse",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"console": "integratedTerminal",
"args": ["mount", "~/mycontainer", "--config-file=config.yaml", "--foreground=true"],
"postDebugTask": "Unmount"
}
]
}
21 changes: 21 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Unmount",
"type": "shell",
"command": "sudo fusermount3 -u ~/mycontainer -z",
"windows": {
// TODO: what do we do on Windows?
"command": ".\\scripts\\test.cmd"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}

0 comments on commit b96417d

Please sign in to comment.