Last active
December 6, 2021 15:32
-
-
Save johananl/6563f07ef9691a8825d845a9d84281ec to your computer and use it in GitHub Desktop.
Debugging Go unit tests with Delve in VS Code
This file contains 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
{ | |
"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