Skip to content

Instantly share code, notes, and snippets.

@johananl
Last active December 6, 2021 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johananl/6563f07ef9691a8825d845a9d84281ec to your computer and use it in GitHub Desktop.
Save johananl/6563f07ef9691a8825d845a9d84281ec to your computer and use it in GitHub Desktop.
Debugging Go unit tests with Delve in VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch test function",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/bootstrap/kubeadm/internal/controllers",
"args": [
"-test.run",
"TestIgnitionBootstrapData"
],
"env": {
"KUBEBUILDER_ASSETS": "/home/me/.local/share/kubebuilder-envtest/k8s/1.22.0-linux-amd64"
},
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment